mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Do not openConnection an extra time to imap server on constructor for changeProfile, refreshQuotaDisplay
This commit is contained in:
parent
c1c90c2621
commit
8ccef246b4
@ -126,7 +126,13 @@ class mail_ui
|
|||||||
$this->mail_bo = mail_bo::getInstance(true,self::$icServerID);
|
$this->mail_bo = mail_bo::getInstance(true,self::$icServerID);
|
||||||
if (mail_bo::$debug) error_log(__METHOD__.__LINE__.' Fetched IC Server:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace());
|
if (mail_bo::$debug) error_log(__METHOD__.__LINE__.' Fetched IC Server:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace());
|
||||||
//error_log(__METHOD__.__LINE__.array2string($this->mail_bo->icServer));
|
//error_log(__METHOD__.__LINE__.array2string($this->mail_bo->icServer));
|
||||||
if ($_GET['menuaction'] != 'mail.etemplate_widget_nextmatch.ajax_get_rows.etemplate')
|
|
||||||
|
// RegEx to minimize extra openConnection
|
||||||
|
$needle = '/mail.etemplate_widget_nextmatch.ajax_get_rows.etemplate|'
|
||||||
|
. 'mail.mail_ui.ajax_refreshQuotaDisplay|'
|
||||||
|
. 'mail.mail_ui.ajax_changeProfile|'
|
||||||
|
. '^(?!mail)/';
|
||||||
|
if (!preg_match($needle,$_GET['menuaction']))
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__.__LINE__.' Fetched IC Server openConnection:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace());
|
//error_log(__METHOD__.__LINE__.' Fetched IC Server openConnection:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace());
|
||||||
//openConnection gathers SpecialUseFolderInformation and Delimiter Info
|
//openConnection gathers SpecialUseFolderInformation and Delimiter Info
|
||||||
|
Loading…
Reference in New Issue
Block a user