[Fusionforge-general] [Fusionforge-commits] FusionForge branch master updated. 42bdfe4854e95f8ad5806356064711490819c821

Thorsten Glaser t.glaser at tarent.de
Mon Feb 24 10:44:59 CET 2014


On Mon, 24 Feb 2014, Franck VILLAUME wrote:

> -		echo '<div class="widget" id="'. $element_id . "\">\n";
> -		echo '<div class="widget_titlebar '. ($readonly?'':'widget_titlebar_handle') . "\">\n";
> +		echo html_ao('div', array('class' => 'widget', 'id' => $element_id));
> +		echo html_ao('div', array('class' => 'widget_titlebar '. ($readonly?'':'widget_titlebar_handle')));
[…]
> -		echo "</div>\n";
> +		echo html_ac(html_ap() -1);

You’re supposed to use it like this:

	$foo = html_ap();
	echo html_ao(…);
	…
	echo html_ac($foo);

That’s more robust against later code changes.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg



More information about the Fusionforge-general mailing list