giving the template name in the content precedence over the one supplied in the template

This commit is contained in:
Ralf Becker 2006-04-30 07:10:42 +00:00
parent b4b6f62489
commit fcfa0f81d5

View File

@ -238,7 +238,7 @@
array_unshift($value['rows'],false);
}
list($template,$options) = explode(',',$cell['size']);
if ($template) // template name can be supplied either in $value['template'] or the options-field
if (!$value['template'] && $template) // template name can be supplied either in $value['template'] or the options-field
{
$value['template'] = $template;
}