diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-22 18:32:06 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-22 18:32:06 +0000 |
commit | eb0c49da11162e1bc35b73889f22d46ed7b9b8b6 (patch) | |
tree | 0880901994e88ca46f4cacc72e8db6f39a896be9 /phpBB/includes | |
parent | b3ab2173a495cf325d822a528b86875ee50d8a6c (diff) | |
download | forums-eb0c49da11162e1bc35b73889f22d46ed7b9b8b6.tar forums-eb0c49da11162e1bc35b73889f22d46ed7b9b8b6.tar.gz forums-eb0c49da11162e1bc35b73889f22d46ed7b9b8b6.tar.bz2 forums-eb0c49da11162e1bc35b73889f22d46ed7b9b8b6.tar.xz forums-eb0c49da11162e1bc35b73889f22d46ed7b9b8b6.zip |
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files 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 = ''; |