mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
no need to call ancient CreateObject when class is autoloadable
This commit is contained in:
parent
a7b6fb5baf
commit
d7f38ce16e
@ -1076,7 +1076,14 @@ function &ExecMethod2($acm)
|
|||||||
list(,$class,$method) = explode('.',$acm);
|
list(,$class,$method) = explode('.',$acm);
|
||||||
if (!is_object($obj =& $GLOBALS[$class]))
|
if (!is_object($obj =& $GLOBALS[$class]))
|
||||||
{
|
{
|
||||||
$obj =& CreateObject($acm);
|
if (class_exists($class))
|
||||||
|
{
|
||||||
|
$obj = new $class;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$obj = CreateObject($acm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!method_exists($obj,$method))
|
if (!method_exists($obj,$method))
|
||||||
|
Loading…
Reference in New Issue
Block a user