From 879c1ea6f6cf05e341f86c05a78d7e98d627cd71 Mon Sep 17 00:00:00 2001 From: Alex Orluc <alex.orluc@maarch.org> Date: Thu, 8 Dec 2016 08:49:41 +0000 Subject: [PATCH] FIX #4949 add customized ldap --- maarch_entreprise/trunk/log.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/maarch_entreprise/trunk/log.php b/maarch_entreprise/trunk/log.php index 16ddc56deda..6eab978ce18 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 <> '') { -- GitLab