]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Storage.php
Remove deprecated code
[friendica.git] / src / Console / Storage.php
index fcf55a9444327c48a610db242752ddbf9e2b11b2..30a7fc713a1838f50d74929c5d788e2bcfc545a6 100644 (file)
@@ -6,7 +6,7 @@ use Asika\SimpleConsole\CommandArgsException;
 use Friendica\Core\StorageManager;
 
 /**
- * @brief tool to manage storage backend and stored data from CLI
+ * tool to manage storage backend and stored data from CLI
  *
  */
 class Storage extends \Asika\SimpleConsole\Console
@@ -88,7 +88,7 @@ HELP;
                $isregisterd = false;
                foreach ($this->storageManager->listBackends() as $name => $class) {
                        $issel = ' ';
-                       if ($current === $class) {
+                       if ($current::getName() == $name) {
                                $issel = '*';
                                $isregisterd = true;
                        };