From cfe77bd46801ddde9133f72bb7fae2ab207df016 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 28 Mar 2016 19:03:23 +0000 Subject: [PATCH] fix PHP Fatal error: Class 'EGroupware\Api\config' not found --- api/src/Mail.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 30c597ffe8..759179ab53 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -289,7 +289,7 @@ class Mail self::$instances[$_profileID]->profileID = $_profileID; 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 (is_null(self::$mailConfig)) self::$mailConfig = config::read('mail'); + if (is_null(self::$mailConfig)) self::$mailConfig = Config::read('mail'); return self::$instances[$_profileID]; } @@ -426,7 +426,7 @@ class Mail $_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) { //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 //if (!isset(self::$mailConfig['how2displayIdentities'])) self::$mailConfig['how2displayIdentities']=''; $how2displayIdentities = ''; @@ -2787,7 +2787,7 @@ class Mail $topFolders = $this->icServer->getMailboxes("", 2, true); // Trigger examination of namespace to retrieve // 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']) { $prefixes=array();