mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02: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))
|
if (!isset($class_name))
|
||||||
{
|
{
|
||||||
list($basetype) = explode('-',$type);
|
list($basetype) = explode('-',$type);
|
||||||
if (!class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$type)) &&
|
$class_name = self::$widget_registry[$basetype];
|
||||||
!class_exists($class_name = 'etemplate_widget_'.str_replace('-','_',$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
|
// default to widget class, we can not ignore it, as the widget may contain other widgets
|
||||||
$class_name = 'etemplate_widget';
|
$class_name = 'etemplate_widget';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user