fixed fatal error in soetemplate called by editor, if etemplate is switched to etemplate_new

This commit is contained in:
Ralf Becker 2013-05-11 09:25:32 +00:00
parent 2bec937130
commit 8f52e2ca3c

View File

@ -1232,7 +1232,7 @@ class soetemplate
case 'template':
if (!isset($widget['obj']) && $widget['name'][0] != '@')
{
$widget['obj'] = new etemplate;
$widget['obj'] = new etemplate_old;
if (!$widget['obj']->read($widget['name'])) $widget['obj'] = false;
}
if (!is_object($widget['obj'])) break; // cant descent into template