]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Lock.php
Remove deprecated code
[friendica.git] / src / Console / Lock.php
index 71de727028f87a1e72248f58eae71b8affdeb26b..2ab383c1e3dc1fce6b29e5d9bf23eb26ff7c2718 100644 (file)
@@ -8,7 +8,7 @@ use Friendica\Core\Lock\ILock;
 use RuntimeException;
 
 /**
- * @brief tool to access the locks from the CLI
+ * tool to access the locks from the CLI
  *
  * With this script you can access the locks of your node from the CLI.
  * You can read current locks and set/remove locks.
@@ -133,7 +133,7 @@ HELP;
                if (count($this->args) >= 2) {
                        $lock = $this->getArgument(1);
 
-                       if ($this->lock->releaseLock($lock, true)) {
+                       if ($this->lock->release($lock, true)) {
                                $this->out(sprintf('Lock \'%s\' released.', $lock));
                        } else {
                                $this->out(sprintf('Couldn\'t release Lock \'%s\'', $lock));