diff options
author | Igor Wiedler <igor@wiedler.ch> | 2012-04-09 14:34:35 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-04-09 14:34:35 +0200 |
commit | 3896ee953fbdb45d0485c0b5dcdfca47409a22ed (patch) | |
tree | 86cee60150ff75d33332a60140230a4aaa780c97 /phpBB/viewforum.php | |
parent | aa0c995ed9cdafa2dfaca23b54d5b4cf6323f794 (diff) | |
download | forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.gz forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.bz2 forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.xz forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.zip |
[feature/dic] Give all cron tasks a name, change some manager usage
PHPBB3-10739
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r-- | phpBB/viewforum.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 16342ba1b3..25c8f5aa6d 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -193,10 +193,12 @@ if ($forum_data['forum_topics_per_page']) // Do the forum Prune thang - cron type job ... if (!$config['use_system_cron']) { - $task = $container->get('cron.task.core.prune_forum'); - $task = new phpbb_cron_task_wrapper($task); + $cron = $container->get('cron.manager'); + + $task = $cron->find_task('cron.task.core.prune_forum'); $task->set_forum_data($forum_data); - if ($task && $task->is_ready()) + + if ($task->is_ready()) { $url = $task->get_url(); $template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />'); |