aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-01-13 03:01:39 +0100
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:54 -0500
commitc6a8abb409c01dd0ae85bf71cd41b62f47db9b77 (patch)
treea00abc7a9360979aeb17d659536eba68ea699678
parent7a2c5e618b62d80df05f7b21c77d840b9e764ef6 (diff)
downloadforums-c6a8abb409c01dd0ae85bf71cd41b62f47db9b77.tar
forums-c6a8abb409c01dd0ae85bf71cd41b62f47db9b77.tar.gz
forums-c6a8abb409c01dd0ae85bf71cd41b62f47db9b77.tar.bz2
forums-c6a8abb409c01dd0ae85bf71cd41b62f47db9b77.tar.xz
forums-c6a8abb409c01dd0ae85bf71cd41b62f47db9b77.zip
[feature/system-cron] Clarify comments about flush() call in cron.
PHPBB3-9596
-rw-r--r--phpBB/cron.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index e179b3e8d6..6de493f0bf 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -29,7 +29,8 @@ function output_image()
echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
- // test without flush ;)
+ // Flush here to prevent browser from showing the page as loading while
+ // running cron.
flush();
}
@@ -70,6 +71,7 @@ else
$cron_type = request_var('cron_type', '');
$use_shutdown_function = (@function_exists('register_shutdown_function')) ? true : false;
+ // Comment this line out for debugging so the page does not return an image.
output_image();
}