aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/cron.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-08-19 16:32:21 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:51 -0500
commit652372bdb1f32a16e6747ad90965dcd25fec06f9 (patch)
tree1faa05d280157755d29f14427a8b3416f9440ba3 /phpBB/cron.php
parent3e707cf26645f66cdc46a17699e156119d20ef75 (diff)
downloadforums-652372bdb1f32a16e6747ad90965dcd25fec06f9.tar
forums-652372bdb1f32a16e6747ad90965dcd25fec06f9.tar.gz
forums-652372bdb1f32a16e6747ad90965dcd25fec06f9.tar.bz2
forums-652372bdb1f32a16e6747ad90965dcd25fec06f9.tar.xz
forums-652372bdb1f32a16e6747ad90965dcd25fec06f9.zip
[feature/system-cron] Add debug information
PHPBB3-9596
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r--phpBB/cron.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index 92fef57623..7c9ab23bdb 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -36,10 +36,15 @@ function output_image()
function do_cron($run_tasks)
{
- global $cron_lock;
+ global $cron_lock, $config;
foreach ($run_tasks as $task)
{
+ if (defined('DEBUG_EXTRA') && $config['use_system_cron'])
+ {
+ echo "[phpBB cron] Running task '{$task->get_name()}'\n";
+ }
+
$task->run();
}
@@ -111,6 +116,6 @@ else
{
if (defined('DEBUG_EXTRA'))
{
- echo "Could not obtain cron lock.";
+ echo "Could not obtain cron lock.\n";
}
}