Restore previous namespace after processing children

This commit is contained in:
Nathan Gray 2012-04-17 22:54:40 +00:00
parent cdbb488a4c
commit b05290d494

View File

@ -766,9 +766,11 @@ class etemplate_widget_box extends etemplate_widget
public function run($method_name, $params=array(''), $respect_disabled=false)
{
$cname =& $params[0];
$old_cname = $params[0];
if ($this->id) $cname = self::form_name($cname, $this->id);
parent::run($method_name, $params, $respect_disabled);
$params[0] = $old_cname;
}
}
// register class for layout widgets, which can have an own namespace