forked from extern/egroupware
allow to permanently use etemplate_new for ported applications no longer supporting old etemplate, while still having etemplate default to etemplate_old
This commit is contained in:
parent
fa3f1c5055
commit
abee7bc2a1
@ -22,9 +22,7 @@
|
|||||||
*
|
*
|
||||||
* @ToDo supported customized templates stored in DB, currently we only support xet files stored in filesystem
|
* @ToDo supported customized templates stored in DB, currently we only support xet files stored in filesystem
|
||||||
*/
|
*/
|
||||||
class etemplate extends etemplate_old {};
|
|
||||||
class etemplate_new extends etemplate_widget_template
|
class etemplate_new extends etemplate_widget_template
|
||||||
//class etemplate extends etemplate_widget_template
|
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Are we running as sitemgr module or not
|
* Are we running as sitemgr module or not
|
||||||
@ -557,6 +555,8 @@ class etemplate_new extends etemplate_widget_template
|
|||||||
return etemplate_old::cats2color($cats);
|
return etemplate_old::cats2color($cats);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// default etemplate class has to be defined by either extending etemplate_new or etemplate_old
|
||||||
|
class etemplate extends etemplate_old {};
|
||||||
|
|
||||||
// Try to discover all widgets, as names don't always match tags (eg: listbox is in menupopup)
|
// Try to discover all widgets, as names don't always match tags (eg: listbox is in menupopup)
|
||||||
$files = scandir(EGW_INCLUDE_ROOT . '/etemplate/inc');
|
$files = scandir(EGW_INCLUDE_ROOT . '/etemplate/inc');
|
||||||
|
Loading…
Reference in New Issue
Block a user