mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSsession : Catch initialization exceptions
This commit is contained in:
parent
772cd8b0da
commit
40b8be065b
1 changed files with 17 additions and 12 deletions
|
@ -444,19 +444,24 @@ class LSsession {
|
||||||
* @retval boolean True si l'initialisation à réussi, false sinon.
|
* @retval boolean True si l'initialisation à réussi, false sinon.
|
||||||
*/
|
*/
|
||||||
public static function initialize() {
|
public static function initialize() {
|
||||||
if (!self :: startLSconfig()) {
|
try {
|
||||||
return;
|
if (!self :: startLSconfig()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
self :: startLSerror();
|
||||||
|
self :: startLStemplate();
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
self :: setLocale();
|
||||||
|
|
||||||
|
self :: loadLSaddons();
|
||||||
|
self :: loadLSauth();
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
die('LSsession : fail to initialize session. Error : '.$e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
self :: startLSerror();
|
|
||||||
self :: startLStemplate();
|
|
||||||
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
self :: setLocale();
|
|
||||||
|
|
||||||
self :: loadLSaddons();
|
|
||||||
self :: loadLSauth();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue