mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Accept the same class naming as index.php
This commit is contained in:
parent
316adfab5e
commit
b1275dd2da
@ -990,8 +990,14 @@ abstract class Ajax extends Api\Framework
|
||||
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
||||
|
||||
$GLOBALS['egw']->framework->response = Api\Json\Response::get();
|
||||
|
||||
$GLOBALS[$class] = $obj = CreateObject($app.'.'.$class);
|
||||
if (class_exists($class))
|
||||
{
|
||||
$GLOBALS[$class] = $obj = new $class;
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS[$class] = $obj = CreateObject($app . '.' . $class);
|
||||
}
|
||||
|
||||
if(!is_array($obj->public_functions) || !$obj->public_functions[$method])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user