]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Lock.php
And moving the block back to the old place
[friendica.git] / src / Core / Lock.php
index e8c8a7041605b0826be5912722f7e9b75629de5d..8bc2c242d18a588d984bb10be0c8daebd4e8e69e 100644 (file)
@@ -122,12 +122,13 @@ class Lock
        /**
         * @brief Releases a lock if it was set by us
         *
-        * @param string $key Name of the lock
+        * @param string $key      Name of the lock
+        * @param bool   $override Overrides the lock to get releases
         * @return void
         */
-       public static function release($key)
+       public static function release($key, $override = false)
        {
-               self::getDriver()->releaseLock($key);
+               self::getDriver()->releaseLock($key, $override);
        }
 
        /**