| @@ 136-139 (lines=4) @@ | ||
| 133 | // no autohide of the sidebox, as we use it for folderlist now. |
|
| 134 | unset($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox']); |
|
| 135 | ||
| 136 | if (isset($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']) && !empty($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'])) |
|
| 137 | { |
|
| 138 | self::$icServerID = (int)$GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']; |
|
| 139 | } |
|
| 140 | if ($_GET["resetConnection"]) |
|
| 141 | { |
|
| 142 | unset($_GET["resetConnection"]); |
|
| @@ 225-232 (lines=8) @@ | ||
| 222 | } |
|
| 223 | if ($_profileID == 0) |
|
| 224 | { |
|
| 225 | if (isset($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']) && !empty($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'])) |
|
| 226 | { |
|
| 227 | $profileID = (int)$GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']; |
|
| 228 | } |
|
| 229 | else |
|
| 230 | { |
|
| 231 | $profileID = Mail\Account::get_default_acc_id(); |
|
| 232 | } |
|
| 233 | if ($profileID!=$_profileID) $_restoreSession==false; |
|
| 234 | $_profileID=$profileID; |
|
| 235 | if (self::$debug) error_log(__METHOD__.' ('.__LINE__.') '.' called with profileID==0 using '.$profileID.' instead->'.function_backtrace()); |
|
| @@ 307-310 (lines=4) @@ | ||
| 304 | */ |
|
| 305 | public static function storeActiveProfileIDToPref($_icServerObject, $_profileID=0, $_testConnection=true) |
|
| 306 | { |
|
| 307 | if (isset($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']) && !empty($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'])) |
|
| 308 | { |
|
| 309 | $oldProfileID = (int)$GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID']; |
|
| 310 | } |
|
| 311 | if ($_testConnection) |
|
| 312 | { |
|
| 313 | try |
|