forked from extern/egroupware
Don't try to transform missing templates, it doesn't end well.
This commit is contained in:
parent
9a2292fc91
commit
d633ce970a
@ -141,8 +141,11 @@ abstract class etemplate_widget_transformer extends etemplate_widget
|
|||||||
// If the widget has been transformed into a template, we
|
// If the widget has been transformed into a template, we
|
||||||
// also need to try and instanciate & parse the template too
|
// also need to try and instanciate & parse the template too
|
||||||
$transformed_template = etemplate_widget_template::instance($attrs['template']);
|
$transformed_template = etemplate_widget_template::instance($attrs['template']);
|
||||||
$this->expand_widget($transformed_template, $expand);
|
if($transformed_template)
|
||||||
$transformed_template->run('beforeSendToClient',array($cname,$expand));
|
{
|
||||||
|
$this->expand_widget($transformed_template, $expand);
|
||||||
|
$transformed_template->run('beforeSendToClient',array($cname,$expand));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
self::setElementAttribute($form_name, $attr, $val);
|
self::setElementAttribute($form_name, $attr, $val);
|
||||||
|
Loading…
Reference in New Issue
Block a user