From 4302dab5fa964039d53d14d4a80e7bcd8f5e2db5 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Fri, 29 Oct 2010 13:36:11 +0200 Subject: [PATCH] [feature/system-cron] coding guidelines adjustments PHPBB3-9596 --- phpBB/includes/cron/task/core/prune_all_forums.php | 2 +- phpBB/viewforum.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/cron/task/core/prune_all_forums.php b/phpBB/includes/cron/task/core/prune_all_forums.php index 154409a37c..7159ba6ae3 100644 --- a/phpBB/includes/cron/task/core/prune_all_forums.php +++ b/phpBB/includes/cron/task/core/prune_all_forums.php @@ -33,7 +33,7 @@ class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base public function run() { global $phpbb_root_path, $phpEx, $db; - + if (!function_exists('auto_prune')) { include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index c60721e3f1..2672703042 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -196,7 +196,8 @@ if ($forum_data['forum_topics_per_page']) if (!$config['use_system_cron']) { $task = $cron->instantiate_task('cron_task_core_prune_forum', $forum_data); - if ($task && $task->is_ready()) { + if ($task && $task->is_ready()) + { $url = $task->get_url(); $template->assign_var('RUN_CRON_TASK', 'cron'); }