mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
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
This commit is contained in:
parent
b3ab2173a4
commit
eb0c49da11
@ -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 = '';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user