forked from extern/egroupware
try to catch exeptions on ->no mail-accounts available at all<-; measure time consumption on folder-tree creation for subscription dialog
This commit is contained in:
parent
4bbda170bd
commit
d6a706d9b8
@ -249,10 +249,14 @@ class mail_bo
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
throw new egw_exception(__METHOD__." failed to instanciate mail_bo for $newprofileID with error:".$e->getMessage());;
|
throw new egw_exception(__METHOD__." failed to instanciate mail_bo for $newprofileID with error:".$e->getMessage());
|
||||||
}
|
}
|
||||||
$_profileID = $newprofileID;
|
$_profileID = $newprofileID;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new egw_exception(__METHOD__." Loading the Profile for ProfileID >".$_profileID.'< failed for icServer; '.$e->getMessage().' Trigger new instance for Default-Profile >'.$newprofileID.'< failed');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::$instances[$_profileID]->profileID = $_profileID;
|
self::$instances[$_profileID]->profileID = $_profileID;
|
||||||
|
@ -189,7 +189,10 @@ class mail_ui
|
|||||||
$stmpl = new etemplate_new('mail.subscribe');
|
$stmpl = new etemplate_new('mail.subscribe');
|
||||||
|
|
||||||
$profileId = $_GET['acc_id'];
|
$profileId = $_GET['acc_id'];
|
||||||
|
$zstarttime = microtime (true);
|
||||||
$sel_options['foldertree'] = $this->getFolderTree(false, $profileId,false,false);
|
$sel_options['foldertree'] = $this->getFolderTree(false, $profileId,false,false);
|
||||||
|
$zendtime = microtime(true) - $zstarttime;
|
||||||
|
error_log(__METHOD__.__LINE__. " time used: ".$zendtime);
|
||||||
$unsubscribedFolders = $this->mail_bo->fetchUnSubscribedFolders();
|
$unsubscribedFolders = $this->mail_bo->fetchUnSubscribedFolders();
|
||||||
$allFolders = $this->mail_bo->getFolderObjects();
|
$allFolders = $this->mail_bo->getFolderObjects();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user