mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/system-cron] Rename lock() to acquire and unlock() to release.
PHPBB3-9596
This commit is contained in:
committed by
Oleg Pudeyev
parent
09b136272b
commit
2e47409e80
@@ -48,7 +48,7 @@ function do_cron($cron_lock, $run_tasks)
|
||||
}
|
||||
|
||||
// Unloading cache and closing db after having done the dirty work.
|
||||
$cron_lock->unlock();
|
||||
$cron_lock->release();
|
||||
garbage_collection();
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ else
|
||||
}
|
||||
|
||||
$cron_lock = new phpbb_lock_db('cron_lock', $config, $db);
|
||||
if ($cron_lock->lock())
|
||||
if ($cron_lock->acquire())
|
||||
{
|
||||
if ($config['use_system_cron'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user