aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 2d91581cf4..16342ba1b3 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -193,7 +193,9 @@ if ($forum_data['forum_topics_per_page'])
// Do the forum Prune thang - cron type job ...
if (!$config['use_system_cron'])
{
- $task = $cron->instantiate_task('cron_task_core_prune_forum', $forum_data);
+ $task = $container->get('cron.task.core.prune_forum');
+ $task = new phpbb_cron_task_wrapper($task);
+ $task->set_forum_data($forum_data);
if ($task && $task->is_ready())
{
$url = $task->get_url();