diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-09 15:02:39 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:50 -0500 |
commit | be087826b084815802e45195db4adc72d0b57e17 (patch) | |
tree | 5446adcb1bb0453fe116a2c243c8ad9c59cefad8 | |
parent | 5c03040ddd531eabf495b48b626b72447c5d9b75 (diff) | |
download | forums-be087826b084815802e45195db4adc72d0b57e17.tar forums-be087826b084815802e45195db4adc72d0b57e17.tar.gz forums-be087826b084815802e45195db4adc72d0b57e17.tar.bz2 forums-be087826b084815802e45195db4adc72d0b57e17.tar.xz forums-be087826b084815802e45195db4adc72d0b57e17.zip |
[feature/system-cron] Added missing include to prune all forums task.
PHPBB3-9596
-rw-r--r-- | phpBB/includes/cron/tasks/core/prune_all_forums.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/cron/tasks/core/prune_all_forums.php b/phpBB/includes/cron/tasks/core/prune_all_forums.php index 6d39fe6a15..de7ea557b0 100644 --- a/phpBB/includes/cron/tasks/core/prune_all_forums.php +++ b/phpBB/includes/cron/tasks/core/prune_all_forums.php @@ -37,7 +37,13 @@ class cron_task_core_prune_all_forums extends cron_task_base */ public function run() { - global $db; + global $phpbb_root_path, $phpEx, $db; + + if (!function_exists('auto_prune')) + { + include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); + } + $sql = 'SELECT forum_id, prune_next, enable_prune, prune_days, prune_viewed, forum_flags, prune_freq FROM ' . FORUMS_TABLE . " WHERE enable_prune = 1 and prune_next < " . time(); |