mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/12576] Remove cron from common.php
PHPBB3-12576
This commit is contained in:
@@ -108,11 +108,6 @@ foreach ($phpbb_hook_finder->find() as $hook)
|
|||||||
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
|
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$config['use_system_cron'])
|
|
||||||
{
|
|
||||||
$cron = $phpbb_container->get('cron.manager');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main event which is triggered on every page
|
* Main event which is triggered on every page
|
||||||
*
|
*
|
||||||
|
@@ -5116,7 +5116,8 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler =
|
|||||||
// Call cron job?
|
// Call cron job?
|
||||||
if ($call_cron)
|
if ($call_cron)
|
||||||
{
|
{
|
||||||
global $cron;
|
global $phpbb_container;
|
||||||
|
$cron = $phpbb_container->get('cron.manager');
|
||||||
$task = $cron->find_one_ready_task();
|
$task = $cron->find_one_ready_task();
|
||||||
|
|
||||||
if ($task)
|
if ($task)
|
||||||
|
Reference in New Issue
Block a user