diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-01-31 23:06:03 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-03-29 21:56:53 +0100 |
| commit | 02fdae4e8800ded878dcdc848563aef202069317 (patch) | |
| tree | 41e28f919b8ac913c94a3c895edf4f7364ee3dfb /phpBB/viewforum.php | |
| parent | a7abf8218dd8440926549df1f5659820f05fd76a (diff) | |
| download | forums-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.php | 12 |
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 |
