mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
fix PHP Fatal error: Class 'EGroupware\Api\config' not found
This commit is contained in:
parent
00abda4682
commit
cfe77bd468
@ -289,7 +289,7 @@ class Mail
|
|||||||
self::$instances[$_profileID]->profileID = $_profileID;
|
self::$instances[$_profileID]->profileID = $_profileID;
|
||||||
if (!isset(self::$instances[$_profileID]->idna2)) self::$instances[$_profileID]->idna2 = new Horde_Idna;
|
if (!isset(self::$instances[$_profileID]->idna2)) self::$instances[$_profileID]->idna2 = new Horde_Idna;
|
||||||
//if ($_profileID==0); error_log(__METHOD__.' ('.__LINE__.') '.' RestoreSession:'.$_restoreSession.' ProfileId:'.$_profileID);
|
//if ($_profileID==0); error_log(__METHOD__.' ('.__LINE__.') '.' RestoreSession:'.$_restoreSession.' ProfileId:'.$_profileID);
|
||||||
if (is_null(self::$mailConfig)) self::$mailConfig = config::read('mail');
|
if (is_null(self::$mailConfig)) self::$mailConfig = Config::read('mail');
|
||||||
return self::$instances[$_profileID];
|
return self::$instances[$_profileID];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ class Mail
|
|||||||
$_profileID = $this->profileID = $GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'] = $this->icServer->ImapServerId;
|
$_profileID = $this->profileID = $GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'] = $this->icServer->ImapServerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null(self::$mailConfig)) self::$mailConfig = config::read('mail');
|
if (is_null(self::$mailConfig)) self::$mailConfig = Config::read('mail');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -792,7 +792,7 @@ class Mail
|
|||||||
static function generateIdentityString($identity, $fullString=true)
|
static function generateIdentityString($identity, $fullString=true)
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__.' ('.__LINE__.') '.array2string($identity));
|
//error_log(__METHOD__.' ('.__LINE__.') '.array2string($identity));
|
||||||
//if (is_null(self::$mailConfig)) self::$mailConfig = config::read('mail');
|
//if (is_null(self::$mailConfig)) self::$mailConfig = Config::read('mail');
|
||||||
// not set? -> use default, means full display of all available data
|
// not set? -> use default, means full display of all available data
|
||||||
//if (!isset(self::$mailConfig['how2displayIdentities'])) self::$mailConfig['how2displayIdentities']='';
|
//if (!isset(self::$mailConfig['how2displayIdentities'])) self::$mailConfig['how2displayIdentities']='';
|
||||||
$how2displayIdentities = '';
|
$how2displayIdentities = '';
|
||||||
@ -2787,7 +2787,7 @@ class Mail
|
|||||||
$topFolders = $this->icServer->getMailboxes("", 2, true);
|
$topFolders = $this->icServer->getMailboxes("", 2, true);
|
||||||
// Trigger examination of namespace to retrieve
|
// Trigger examination of namespace to retrieve
|
||||||
// folders located in other and shared; needed only for some servers
|
// folders located in other and shared; needed only for some servers
|
||||||
if (is_null(self::$mailConfig)) self::$mailConfig = config::read('mail');
|
if (is_null(self::$mailConfig)) self::$mailConfig = Config::read('mail');
|
||||||
if (self::$mailConfig['examineNamespace'])
|
if (self::$mailConfig['examineNamespace'])
|
||||||
{
|
{
|
||||||
$prefixes=array();
|
$prefixes=array();
|
||||||
|
Loading…
Reference in New Issue
Block a user