mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix PHP Fatal error: Call to undefined method EGroupware\Api\Session::appsession() during SiteMgr installation
This commit is contained in:
parent
ca04e639c4
commit
05e5c6181f
@ -17,11 +17,6 @@ namespace EGroupware\Api\Egw;
|
||||
|
||||
use EGroupware\Api;
|
||||
|
||||
// explicitly list old, non-namespaced classes
|
||||
// they are only used, if phpgwapi is installed
|
||||
use accounts as egw_accounts;
|
||||
use egw_session;
|
||||
|
||||
/**
|
||||
* Egw\Base object used in setup, does not instanciate anything by default
|
||||
*
|
||||
@ -119,6 +114,12 @@ class Base
|
||||
unset($e);
|
||||
return null;
|
||||
}
|
||||
case 'session':
|
||||
$class = file_exists(EGW_SERVER_ROOT.'/phpgwapi') ? 'egw_session' : 'EGroupware\\Api\\Session';
|
||||
break;
|
||||
case 'accounts':
|
||||
$class = file_exists(EGW_SERVER_ROOT.'/phpgwapi') ? 'accounts' : 'EGroupware\\Api\\Accounts';
|
||||
break;
|
||||
case 'ldap':
|
||||
return $this->ldap = Api\Ldap::factory(false);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user