mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Call static methods staticly
This commit is contained in:
parent
7ce4dd1e28
commit
a5cdc928f0
@ -96,6 +96,13 @@ class egw_json_request
|
||||
{
|
||||
@list($className,$functionName,$handler) = explode('::',$menuaction);
|
||||
list($appName) = explode('_',$className);
|
||||
|
||||
// Check for a real static method, avoid instanciation if it is
|
||||
$m = new ReflectionMethod($menuaction);
|
||||
if($m->isStatic())
|
||||
{
|
||||
$ajaxClass = $className;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -143,7 +150,7 @@ class egw_json_request
|
||||
{
|
||||
$ajaxClass = $GLOBALS['egw']->framework;
|
||||
}
|
||||
else
|
||||
else if (!$ajaxClass)
|
||||
{
|
||||
$ajaxClass = CreateObject($appName.'.'.$className);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user