diff options
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 3ee931e95d..5177bff5b8 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -98,16 +98,7 @@ else if (defined('IN_CRON')) { - chdir($phpbb_root_path); - if (@function_exists('getcwd')) - { - $phpbb_root_path = getcwd() . '/'; - } - else - { - // This is a best guess - $phpbb_root_path = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_DIRNAME) . '/'; - } + $phpbb_root_path = dirname(__FILE__) . DIRECTORY_SEPARATOR; } if (!file_exists($phpbb_root_path . 'config.' . $phpEx)) |