mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 16:52:54 +02:00
[feature/dic] Rewrite cron system to use DIC
PHPBB3-10739
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user