Use different app if running hooked also

This commit is contained in:
Nathan Gray 2011-07-05 15:56:30 +00:00
parent 4e54cdabc0
commit 324cb05599

View File

@ -112,7 +112,7 @@ class customfields_widget
{
list($app) = explode('.',$tmpl->name);
// if we are in the etemplate editor or the app has no cf's, load the cf's from the app the tpl belongs too
if ($app && $app != 'stylite' && $app != $this->appname && ($this->appname == 'etemplate' || !$this->customfields))
if ($app && $app != 'stylite' && $app != $this->appname && ($this->appname == 'etemplate' || !$this->customfields || etemplate::$hooked))
{
self::__construct(null,$app); // app changed
}