diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index aca6c11b55..1405a25a2d 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -1,10 +1,10 @@ - * @copyright 2002-10 by RalfBecker@outdoor-training.de + * @copyright 2002-11 by RalfBecker@outdoor-training.de * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package etemplate * @subpackage api @@ -890,15 +890,15 @@ class soetemplate } fwrite($f,' - * @copyright 2002-9 by RalfBecker@outdoor-training.de + * @copyright 2002-11 by RalfBecker@outdoor-training.de * @version $Id$ */ @@ -154,12 +154,15 @@ class xul_io */ function &add_widget(&$parent,$cell,&$embeded_too) { + // sort attributes, to stop xet files from changing because of changed attribute order + ksort($cell, SORT_STRING); + $type = $cell['type']; if (is_array($type)) { list(,$type) = each($type); } - if (!$type) $cell['type'] = $type = 'hugo'; + if (!$type) $cell['type'] = $type = 'unknown'; if (substr($type,0,6) == 'select') { $type = $cell['size'] > 1 ? 'select-multi' : 'select';