From 9952e7e8ba3f9bfdb01e89b46b59c0a91a2f6115 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 9 Oct 2008 16:15:26 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSsession=20:=20N'affiche=20le=20recoverPas?= =?UTF-8?q?sword=20que=20si=20celui-ci=20est=20activ=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSsession.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/includes/class/class.LSsession.php b/trunk/includes/class/class.LSsession.php index 9504c955..f862fe52 100644 --- a/trunk/includes/class/class.LSsession.php +++ b/trunk/includes/class/class.LSsession.php @@ -735,7 +735,9 @@ class LSsession { $GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifiant')); $GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Mot de passe')); $GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connexion')); - $GLOBALS['Smarty'] -> assign('loginform_label_lostpassword',_('Mot de passe oubliƩ ?')); + if (isset($GLOBALS['LSconfig']['ldap_servers'][0])) { + $GLOBALS['Smarty'] -> assign('loginform_label_lostpassword',_('Mot de passe oubliƩ ?')); + } $this -> setTemplate('login.tpl'); $this -> addJSscript('LSsession_login.js');