1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12576] Remove cron from common.php

PHPBB3-12576
This commit is contained in:
Tristan Darricau
2014-05-22 12:11:02 +02:00
parent a2cd9c2464
commit ff280d3f46
2 changed files with 2 additions and 6 deletions

View File

@@ -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)