1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-27 10:14:47 +02:00

[ticket/12150] Add file and caller for pruning shadow topics

PHPBB3-12150
This commit is contained in:
Marc Alexander
2014-01-31 23:06:03 +01:00
parent a7abf8218d
commit 02fdae4e88
5 changed files with 218 additions and 0 deletions

View File

@@ -224,6 +224,18 @@ if (!$config['use_system_cron'])
$url = $task->get_url();
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
}
else
{
// See if we should prune the shadow topics instead
$task = $cron->find_task('cron.task.core.prune_shadow_topics');
$task->set_forum_data($forum_data);
if ($task->is_ready())
{
$url = $task->get_url();
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
}
}
}
// Forum rules and subscription info