aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2010-04-14 16:14:32 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:48 -0500
commit77d7238eef84f498fc024fa8b9e06f187dd0f2a6 (patch)
treeb12c005233f4a25b704b27956f9ff047840b56b4 /phpBB/common.php
parent8f0e9aee5ce518937b7ed05c2cd602e85e5b0b8a (diff)
downloadforums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar
forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.gz
forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.bz2
forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.xz
forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.zip
[feature/system-cron] WIP on making cron tasks runnable via system cron
PHPBB3-9596
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 0ac7cbbd86..3586031c36 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -239,3 +239,9 @@ foreach ($cache->obtain_hooks() as $hook)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
+
+if (!$config['use_system_cron'])
+{
+ require($phpbb_root_path . 'includes/cron.' . $phpEx);
+ $cron = new cron();
+}