refactoring

This commit is contained in:
Roland Gruber 2020-02-22 11:07:18 +01:00
parent cc5fab6e5a
commit 0610004c7d
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ use \LAM\REMOTE\RemoteServerConfiguration;
/* /*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2019 Roland Gruber Copyright (C) 2003 - 2020 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -2635,7 +2635,7 @@ class LAMCfgMain {
* Loads preferences from config file * Loads preferences from config file
*/ */
function __construct() { function __construct() {
$this->conffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/config.cfg"; $this->conffile = __DIR__ . "/../config/config.cfg";
// set default values // set default values
$this->sessionTimeout = 30; $this->sessionTimeout = 30;
$this->logLevel = LOG_NOTICE; $this->logLevel = LOG_NOTICE;