mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[ticket/11189] Replace DEBUG_EXTRA with DEBUG
PHPBB3-11189
This commit is contained in:
@@ -39,7 +39,7 @@ function do_cron($cron_lock, $run_tasks)
|
||||
|
||||
foreach ($run_tasks as $task)
|
||||
{
|
||||
if (defined('DEBUG_EXTRA') && $config['use_system_cron'])
|
||||
if (defined('DEBUG') && $config['use_system_cron'])
|
||||
{
|
||||
echo "[phpBB cron] Running task '{$task->get_name()}'\n";
|
||||
}
|
||||
@@ -57,7 +57,7 @@ function do_cron($cron_lock, $run_tasks)
|
||||
//
|
||||
// Attempt to alleviate the problem by doing setup outside of the lock as much as possible.
|
||||
//
|
||||
// If DEBUG_EXTRA is defined and cron lock cannot be obtained, a message will be printed.
|
||||
// If DEBUG is defined and cron lock cannot be obtained, a message will be printed.
|
||||
|
||||
if ($config['use_system_cron'])
|
||||
{
|
||||
@@ -100,7 +100,7 @@ if ($cron_lock->acquire())
|
||||
}
|
||||
else
|
||||
{
|
||||
if (defined('DEBUG_EXTRA'))
|
||||
if (defined('DEBUG'))
|
||||
{
|
||||
echo "Could not obtain cron lock.\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user