Make customfield page not fail in et2

This commit is contained in:
Nathan Gray 2012-07-05 20:11:06 +00:00
parent c19a3b6c5f
commit 369993d439

View File

@ -87,11 +87,16 @@ class customfields
//error_log( array2string($this->content_types));
}
}
else
elseif (!($this->tmpl instanceof etemplate_widget))
{
$this->tmpl->children[0]['data'][2]['A']['disabled'] = true;
$this->tmpl->children[0]['data'][3]['A']['disabled'] = true;
}
elseif(method_exists($this->tmpl, 'disableElement'))
{
// et2
$this->tmpl->disableElement('admin.customfields.type', true);
}
if (is_array($content))
{
//echo '<pre style="text-align: left;">'; print_r($content); echo "</pre>\n";