[feature/system-cron] Add debug information

PHPBB3-9596
This commit is contained in:
Igor Wiedler 2010-08-19 16:32:21 -04:00 committed by Oleg Pudeyev
parent 3e707cf266
commit 652372bdb1

View file

@ -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";
}
}