mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
LSsession :: loadLSaddon(): don't if config file is not found
This commit is contained in:
parent
7153356a24
commit
e87270112e
1 changed files with 6 additions and 1 deletions
|
@ -345,7 +345,12 @@ class LSsession {
|
||||||
*/
|
*/
|
||||||
public static function loadLSaddon($addon) {
|
public static function loadLSaddon($addon) {
|
||||||
if(self :: includeFile(LS_ADDONS_DIR .'LSaddons.'.$addon.'.php')) {
|
if(self :: includeFile(LS_ADDONS_DIR .'LSaddons.'.$addon.'.php')) {
|
||||||
self :: includeFile(LS_CONF_DIR."LSaddons/config.LSaddons.".$addon.".php");
|
// Load LSaddon config file (without warning if not found)
|
||||||
|
$conf_file = LS_CONF_DIR."LSaddons/config.LSaddons.".$addon.".php";
|
||||||
|
if (self :: includeFile($conf_file, false, false))
|
||||||
|
LSlog :: debug("LSsession :: loadLSaddon($addon): config file '$conf_file' loaded.");
|
||||||
|
else
|
||||||
|
LSlog :: debug("LSsession :: loadLSaddon($addon): config file '$conf_file' not found.");
|
||||||
if (!call_user_func('LSaddon_'. $addon .'_support')) {
|
if (!call_user_func('LSaddon_'. $addon .'_support')) {
|
||||||
LSerror :: addErrorCode('LSsession_02',$addon);
|
LSerror :: addErrorCode('LSsession_02',$addon);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue