From eb0c49da11162e1bc35b73889f22d46ed7b9b8b6 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sun, 22 Oct 2006 18:32:06 +0000 Subject: [PATCH] Add an optional flag to allow the disabling of generating the cron image for pages if appropriate git-svn-id: file:///svn/phpbb/trunk@6521 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 939bcf2356..cd3a4fb270 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3303,7 +3303,7 @@ function page_header($page_title = '', $display_online_list = true) /** * Generate page footer */ -function page_footer() +function page_footer($run_cron = true) { global $db, $config, $template, $user, $auth, $cache, $messenger, $starttime, $phpbb_root_path, $phpEx; @@ -3345,7 +3345,7 @@ function page_footer() ); // Call cron-type script - if (!defined('IN_CRON')) + if (!defined('IN_CRON') && $run_cron) { $cron_type = '';