mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 15:33:47 +01:00
Improve LSsession :: loadLSobject() error debugging
This commit is contained in:
parent
0e2ee1a579
commit
408c6d82cf
1 changed files with 5 additions and 0 deletions
|
@ -232,25 +232,30 @@ class LSsession {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
self :: loadLSclass('LSldapObject');
|
self :: loadLSclass('LSldapObject');
|
||||||
if (!self :: loadLSclass($object,'LSobjects')) {
|
if (!self :: loadLSclass($object,'LSobjects')) {
|
||||||
|
LSdebug("LSsession :: loadLSobject($object) : Fail to load LSldapObject class");
|
||||||
$error = 1;
|
$error = 1;
|
||||||
}
|
}
|
||||||
if (!self :: includeFile( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) {
|
if (!self :: includeFile( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) {
|
||||||
|
LSdebug("LSsession :: loadLSobject($object) : Fail to include 'config.LSobjects.$object.php' file");
|
||||||
$error = 1;
|
$error = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!LSconfig :: set("LSobjects.$object",$GLOBALS['LSobjects'][$object])) {
|
if (!LSconfig :: set("LSobjects.$object",$GLOBALS['LSobjects'][$object])) {
|
||||||
|
LSdebug("LSsession :: loadLSobject($object) : Fail to LSconfig :: set('LSobjects.$object', \$GLOBALS['LSobjects'][$object])");
|
||||||
$error = 1;
|
$error = 1;
|
||||||
}
|
}
|
||||||
else if (isset($GLOBALS['LSobjects'][$object]['LSaddons'])){
|
else if (isset($GLOBALS['LSobjects'][$object]['LSaddons'])){
|
||||||
if (is_array($GLOBALS['LSobjects'][$object]['LSaddons'])) {
|
if (is_array($GLOBALS['LSobjects'][$object]['LSaddons'])) {
|
||||||
foreach ($GLOBALS['LSobjects'][$object]['LSaddons'] as $addon) {
|
foreach ($GLOBALS['LSobjects'][$object]['LSaddons'] as $addon) {
|
||||||
if (!self :: loadLSaddon($addon)) {
|
if (!self :: loadLSaddon($addon)) {
|
||||||
|
LSdebug("LSsession :: loadLSobject($object) : Fail to load LSaddon '$addon'");
|
||||||
$error = 1;
|
$error = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!self :: loadLSaddon($GLOBALS['LSobjects'][$object]['LSaddons'])) {
|
if (!self :: loadLSaddon($GLOBALS['LSobjects'][$object]['LSaddons'])) {
|
||||||
|
LSdebug("LSsession :: loadLSobject($object) : Fail to load LSaddon '".$GLOBALS['LSobjects'][$object]['LSaddons']."'");
|
||||||
$error = 1;
|
$error = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue