]> git.mxchange.org Git - friendica.git/commitdiff
Fix unregister storage backend
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 12 Dec 2018 19:35:18 +0000 (20:35 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:12:30 +0000 (09:12 -0500)
src/Core/StorageManager.php

index ad2c0cb1db2f0220dcdfaba17c08b289c12f2973..4c7b151bf7d1d49052dfa8e26b37426de7e1e946 100644 (file)
@@ -95,7 +95,7 @@ class StorageManager
         *
         * @param string  $name   User readable backend name
         */
-       public static function unregister($class)
+       public static function unregister($name)
        {
                self::setup();
                unset(self::$backends[$name]);
@@ -114,7 +114,7 @@ class StorageManager
         *
         * @retur int Number of moved resources
         */
-       public static function move(string $dest, $tables = null)
+       public static function move($dest, $tables = null)
        {
                if (is_null($dest) || empty($dest)) {
                        throw Exception('Can\'t move to NULL storage backend');