aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-22 12:11:02 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-22 12:45:03 +0200
commitff280d3f466dcb139af98b027317291e4ca45b2f (patch)
treea3f3e6685c597a508fc7e2a31d51fa01db2f4270 /phpBB/includes/functions.php
parenta2cd9c2464b2f83ec005831955d2f027c9c0210a (diff)
downloadforums-ff280d3f466dcb139af98b027317291e4ca45b2f.tar
forums-ff280d3f466dcb139af98b027317291e4ca45b2f.tar.gz
forums-ff280d3f466dcb139af98b027317291e4ca45b2f.tar.bz2
forums-ff280d3f466dcb139af98b027317291e4ca45b2f.tar.xz
forums-ff280d3f466dcb139af98b027317291e4ca45b2f.zip
[ticket/12576] Remove cron from common.php
PHPBB3-12576
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 49568bb1b2..adb6e1a0a0 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5116,7 +5116,8 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler =
// Call cron job?
if ($call_cron)
{
- global $cron;
+ global $phpbb_container;
+ $cron = $phpbb_container->get('cron.manager');
$task = $cron->find_one_ready_task();
if ($task)