diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-05-23 00:34:28 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-05-23 00:34:28 +0200 |
| commit | 1eef2f278271361ad0ffc52bd5444ce05ff454ae (patch) | |
| tree | 92ba3c08d6e2f983f3ace57478440bbdc4687639 /phpBB/includes/functions.php | |
| parent | b0dd144fe3e40202a8b07d7fc29f7c40f78d2a85 (diff) | |
| parent | 004b3178761fb4e5f954049194751d1fb7f512c0 (diff) | |
| download | forums-1eef2f278271361ad0ffc52bd5444ce05ff454ae.tar forums-1eef2f278271361ad0ffc52bd5444ce05ff454ae.tar.gz forums-1eef2f278271361ad0ffc52bd5444ce05ff454ae.tar.bz2 forums-1eef2f278271361ad0ffc52bd5444ce05ff454ae.tar.xz forums-1eef2f278271361ad0ffc52bd5444ce05ff454ae.zip | |
Merge pull request #2484 from Nicofuma/ticket/12576
[ticket/12576] Remove cron from common.php
* Nicofuma/ticket/12576:
[ticket/12576] Retrieve the cron_manager in cron.php if needed
[ticket/12576] Remove cron from common.php
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 3 |
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) |
