diff --git a/maarch_entreprise/trunk/log.php b/maarch_entreprise/trunk/log.php index 16ddc56dedaf3c14d0c0a70eee5753e71786dd9e..6eab978ce18d7230457e89d3a281d9417b456868 100644 --- a/maarch_entreprise/trunk/log.php +++ b/maarch_entreprise/trunk/log.php @@ -122,10 +122,12 @@ if (! empty($_SESSION['error'])) { $classLdap = 'class_adLDAP.php'; } - if (!include $_SESSION['config']['corepath'] . 'modules/ldap/class/'.$classLdap) + //customized or not + if (!@include $_SESSION['config']['corepath'] . '/custom/' . $_SESSION['custom_override_id'] . '/modules/ldap/class/'.$classLdap) { - exit('Impossible de charger class_' . $_SESSION['config']['corepath'] - . 'modules/ldap/class/'.$classLdap."\n"); + if(!@include $_SESSION['config']['corepath'] . 'modules/ldap/class/'.$classLdap){ + exit('Impossible de charger class_' . $_SESSION['config']['corepath'] . '/modules/ldap/class/'.$classLdap."\n"); + } } if ($prefix_login <> '') {