mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 10:30:42 +00:00
getConfigDir() also works on MS Windows
This commit is contained in:
parent
1f2041fd4c
commit
e5c1f0fe09
|
|
@ -804,7 +804,7 @@ class Settings { /* {{{ */
|
||||||
*/
|
*/
|
||||||
function getConfigDir() { /* {{{ */
|
function getConfigDir() { /* {{{ */
|
||||||
$_tmp = dirname($_SERVER['SCRIPT_FILENAME']);
|
$_tmp = dirname($_SERVER['SCRIPT_FILENAME']);
|
||||||
$_arr = preg_split('/\//', $_tmp);
|
$_arr = preg_split('/\//', rtrim(str_replace('\\', '/', $_tmp)));
|
||||||
$configDir = null;
|
$configDir = null;
|
||||||
if(file_exists(implode('/', $_arr)."/conf/"))
|
if(file_exists(implode('/', $_arr)."/conf/"))
|
||||||
$configDir = implode('/', $_arr)."/conf/";
|
$configDir = implode('/', $_arr)."/conf/";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user