From 0610004c7dcbedc51940ebbe0a13fd45110972e4 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 22 Feb 2020 11:07:18 +0100 Subject: [PATCH] refactoring --- lam/lib/config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/config.inc b/lam/lib/config.inc index 53324f34..9b2cec65 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -4,7 +4,7 @@ use \LAM\REMOTE\RemoteServerConfiguration; /* 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 it under the terms of the GNU General Public License as published by @@ -2635,7 +2635,7 @@ class LAMCfgMain { * Loads preferences from config file */ function __construct() { - $this->conffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/config.cfg"; + $this->conffile = __DIR__ . "/../config/config.cfg"; // set default values $this->sessionTimeout = 30; $this->logLevel = LOG_NOTICE;