mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Some changes... non-invasive...
git-svn-id: file:///svn/phpbb/trunk@8025 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user