From 511a925bb45ff2587600c7121351cff79d39125a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 2 Nov 2013 10:28:56 +0000 Subject: [PATCH] excluding contact_widget causing to load etemplate_widget and etemplate_widget_transformer, not playing nice with old editor --- etemplate/inc/class.editor.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index fc24a050dd..379ebdcb9e 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -1599,7 +1599,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 + // ignore et2 widgets, causing problems with old editor + if (in_array($file, array('class.etemplate_widget.inc.php', 'class.contact_widget.inc.php'))) continue; if (preg_match('/class\\.([a-zA-Z0-9_]*)_widget.inc.php/',$file,$regs) && ($regs[1] != 'xslt' || $this->etemplate->xslt) &&