aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-01-31 23:06:03 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-03-29 21:56:53 +0100
commit02fdae4e8800ded878dcdc848563aef202069317 (patch)
tree41e28f919b8ac913c94a3c895edf4f7364ee3dfb /phpBB/viewforum.php
parenta7abf8218dd8440926549df1f5659820f05fd76a (diff)
downloadforums-02fdae4e8800ded878dcdc848563aef202069317.tar
forums-02fdae4e8800ded878dcdc848563aef202069317.tar.gz
forums-02fdae4e8800ded878dcdc848563aef202069317.tar.bz2
forums-02fdae4e8800ded878dcdc848563aef202069317.tar.xz
forums-02fdae4e8800ded878dcdc848563aef202069317.zip
[ticket/12150] Add file and caller for pruning shadow topics
PHPBB3-12150
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 7f194bbcef..4da0267284 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -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