diff options
author | Nils Adermann <naderman@naderman.de> | 2011-01-13 02:03:16 +0100 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:54 -0500 |
commit | 2e47409e8093284a03c23bb9bd6c8e87f407cb35 (patch) | |
tree | a3236ced2f3d245ba1b6daad8b5de7c5c53b39f0 /phpBB/cron.php | |
parent | [feature/system-cron] Cache cron's task names. (diff) | |
download | phpbb-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar.gz phpbb-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar.bz2 phpbb-2e47409e8093284a03c23bb9bd6c8e87f407cb35.zip |
[feature/system-cron] Rename lock() to acquire and unlock() to release.
PHPBB3-9596
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r-- | phpBB/cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php index fb85e9fe18..e179b3e8d6 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -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']) { |