mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSsession: improve loadLSaddons() method
This commit is contained in:
parent
56ffbd7a71
commit
8b996885d1
1 changed files with 8 additions and 7 deletions
|
@ -557,24 +557,25 @@ class LSsession {
|
|||
}
|
||||
|
||||
/**
|
||||
* Chargement des addons LdapSaisie
|
||||
* Load globally required LSaddons
|
||||
*
|
||||
* Chargement des LSaddons contenue dans la variable
|
||||
* $GLOBALS['LSaddons']['loads']
|
||||
* Load LSaddons list in $GLOBALS['LSaddons']['loads']
|
||||
*
|
||||
* @retval boolean true si le chargement a réussi, false sinon.
|
||||
* @retval boolean True on success, False otherwise
|
||||
*/
|
||||
public static function loadLSaddons() {
|
||||
$conf=LSconfig :: get('LSaddons.loads');
|
||||
$conf = LSconfig :: get('LSaddons.loads');
|
||||
if(!is_array($conf)) {
|
||||
LSerror :: addErrorCode('LSsession_01',"LSaddons['loads']");
|
||||
return;
|
||||
}
|
||||
|
||||
$error = false;
|
||||
foreach ($conf as $addon) {
|
||||
self :: loadLSaddon($addon);
|
||||
if (!self :: loadLSaddon($addon))
|
||||
$false = true;
|
||||
}
|
||||
return true;
|
||||
return !$error;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue