mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +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() { /* {{{ */
|
||||
$_tmp = dirname($_SERVER['SCRIPT_FILENAME']);
|
||||
$_arr = preg_split('/\//', $_tmp);
|
||||
$_arr = preg_split('/\//', rtrim(str_replace('\\', '/', $_tmp)));
|
||||
$configDir = null;
|
||||
if(file_exists(implode('/', $_arr)."/conf/"))
|
||||
$configDir = implode('/', $_arr)."/conf/";
|
||||
|
|
Loading…
Reference in New Issue
Block a user