mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix for some widgets with sub-type not being initialized properly
This commit is contained in:
parent
683a624710
commit
c952141839
@ -295,8 +295,9 @@ class etemplate_widget
|
||||
if (!isset($class_name))
|
||||
{
|
||||
list($basetype) = explode('-',$type);
|
||||
if (!class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$type)) &&
|
||||
!class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$basetype)))
|
||||
$class_name = self::$widget_registry[$basetype];
|
||||
if (!$class_name && !(class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$basetype)) ||
|
||||
class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$type))))
|
||||
{
|
||||
// default to widget class, we can not ignore it, as the widget may contain other widgets
|
||||
$class_name = 'etemplate_widget';
|
||||
|
Loading…
Reference in New Issue
Block a user