ignore et2 base-class when scanning for widgets to display in (old) editor

This commit is contained in:
Ralf Becker 2011-08-27 09:08:07 +00:00
parent 07f7e61e91
commit 8b49d88788

View File

@ -1547,6 +1547,8 @@ class editor
$dir = @opendir(EGW_SERVER_ROOT.'/'.$app.'/inc');
while ($dir && ($file = readdir($dir)))
{
if ($file == 'class.etemplate_widget.inc.php') continue; // ignore et2 base-class, it's no widget for old etemplate
if (preg_match('/class\\.([a-zA-Z0-9_]*)_widget.inc.php/',$file,$regs) &&
($regs[1] != 'xslt' || $this->etemplate->xslt) &&
($ext = $this->etemplate->loadExtension($regs[1].'.'.$app,$this->etemplate)))