mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-27 10:53:48 +01:00
LSauthMethod: don't warn if config file not found
This commit is contained in:
parent
e87270112e
commit
3c613b7ab4
1 changed files with 6 additions and 3 deletions
|
@ -30,9 +30,12 @@ class LSauthMethod {
|
|||
var $authData = array();
|
||||
|
||||
public function __construct() {
|
||||
// Load config
|
||||
LSsession :: includeFile(LS_CONF_DIR."LSauth/config.".get_class($this).".php");
|
||||
LSdebug(LS_CONF_DIR."LSauth/config.".get_class($this).".php");
|
||||
// Load config (without warning if not found)
|
||||
$conf_file = LS_CONF_DIR."LSauth/config.".get_class($this).".php";
|
||||
if (LSsession :: includeFile($conf_file, false, false))
|
||||
LSlog :: debug(get_class($this)." :: __construct(): config file ($conf_file) loaded");
|
||||
else
|
||||
LSlog :: debug(get_class($this)." :: __construct(): config file ($conf_file) not found");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue