aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r--phpBB/cron.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index 6c7b4311aa..b5a51a1688 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -12,7 +12,7 @@
*/
define('IN_PHPBB', true);
define('IN_CRON', true);
-$phpbb_root_path = './';
+$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);