diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index 379ebdcb9e..2944993ed9 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -4,7 +4,7 @@ * * @link http://www.egroupware.org * @author Ralf Becker - * @copyright 2002-12 by RalfBecker@outdoor-training.de + * @copyright 2002-13 by RalfBecker@outdoor-training.de * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package etemplate * @subpackage tools @@ -1599,8 +1599,8 @@ class editor $dir = @opendir(EGW_SERVER_ROOT.'/'.$app.'/inc'); while ($dir && ($file = readdir($dir))) { - // ignore et2 widgets, causing problems with old editor - if (in_array($file, array('class.etemplate_widget.inc.php', 'class.contact_widget.inc.php'))) continue; + // ignore et2 base widget matching name-schema of old eTemplate + if ($file == 'class.etemplate_widget.inc.php') continue; if (preg_match('/class\\.([a-zA-Z0-9_]*)_widget.inc.php/',$file,$regs) && ($regs[1] != 'xslt' || $this->etemplate->xslt) && diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index a8a935e6ea..773afbcb9c 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -7,17 +7,10 @@ * @subpackage api * @link http://www.egroupware.org * @author Ralf Becker - * @copyright 2002-11 by RalfBecker@outdoor-training.de + * @copyright 2002-13 by RalfBecker@outdoor-training.de * @version $Id$ */ -// include only widgets which can't be autoloaded (or contain sub-widgets which cant) -require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_textbox.inc.php'; -require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_grid.inc.php'; -require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_checkbox.inc.php'; -require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.contact_widget.inc.php'; -include_once EGW_INCLUDE_ROOT.'/importexport/inc/class.importexport_widget_filter.inc.php'; - /** * eTemplate widget baseclass *