From 0a410a1e057ed0d32c3be7fbf7c8fa519a5bd3cf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 13 Aug 2011 17:34:59 +0000 Subject: [PATCH] seems all widget have to be explicitly loaded, to be used ... --- etemplate/inc/class.etemplate_new.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_new.inc.php b/etemplate/inc/class.etemplate_new.inc.php index e93356f38b..4e4eacade1 100644 --- a/etemplate/inc/class.etemplate_new.inc.php +++ b/etemplate/inc/class.etemplate_new.inc.php @@ -95,6 +95,15 @@ class etemplate_new egw_framework::validate_file('.','et2_xml','etemplate'); egw_framework::validate_file('.','et2_baseWidget','etemplate'); egw_framework::validate_file('.','et2_contentArrayMgr','etemplate'); + + // it seems all widget have to be explicitly loaded, to be used ... + foreach(scandir(EGW_SERVER_ROOT.'/etemplate/js') as $file) + { + if (preg_match('/^(et2_.*)\.js$/',$file,$matches)) + { + egw_framework::validate_file('.',$matches[1],'etemplate'); + } + } egw_framework::includeCSS('/etemplate/js/test/test.css'); common::egw_header(); if ($output_mode != 2) @@ -169,7 +178,7 @@ class etemplate_new error_log(__METHOD__."('$name',...,'$load_via') returning FALSE"); return false; } - error_log(__METHOD__."('$name',...,'$load_via') this->rel_path=$this->rel_path returning FALSE"); + //error_log(__METHOD__."('$name',...,'$load_via') this->rel_path=$this->rel_path returning TRUE"); return true; }