diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-04-14 16:14:32 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:48 -0500 |
| commit | 77d7238eef84f498fc024fa8b9e06f187dd0f2a6 (patch) | |
| tree | b12c005233f4a25b704b27956f9ff047840b56b4 /phpBB/viewforum.php | |
| parent | 8f0e9aee5ce518937b7ed05c2cd602e85e5b0b8a (diff) | |
| download | forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.gz forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.bz2 forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.tar.xz forums-77d7238eef84f498fc024fa8b9e06f187dd0f2a6.zip | |
[feature/system-cron] WIP on making cron tasks runnable via system cron
PHPBB3-9596
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 47d71849cb..8a06e28394 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -193,9 +193,9 @@ if ($forum_data['forum_topics_per_page']) } // Do the forum Prune thang - cron type job ... -if ($forum_data['prune_next'] < time() && $forum_data['enable_prune']) +if (!$config['use_system_cron'] && $cron->is_task_runnable('prune_forum', array($forum_data))) { - $template->assign_var('RUN_CRON_TASK', '<img src="' . append_sid($phpbb_root_path . 'cron.' . $phpEx, 'cron_type=prune_forum&f=' . $forum_id) . '" alt="cron" width="1" height="1" />'); + $template->assign_var('RUN_CRON_TASK', $cron->generate_task_code('prune_forum', array($forum_id))); } // Forum rules and subscription info |
