]> git.mxchange.org Git - friendica.git/commitdiff
Revert b2794bb2c 'Allow set empty string storge class for legacy'
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 10 Apr 2019 06:35:44 +0000 (08:35 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Wed, 10 Apr 2019 06:35:44 +0000 (08:35 +0200)
src/Core/StorageManager.php

index 4b74035ee8635465a60757c12a418fd7ac187f4d..8cd7d439531824b3b836e086a4cfd0d71db2ca05 100644 (file)
@@ -29,8 +29,8 @@ class StorageManager
        }
 
        /**
-        * @brief Return current storage backend class 
-        * 
+        * @brief Return current storage backend class
+        *
         * @return string
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
@@ -53,7 +53,6 @@ class StorageManager
 
        /**
         * @brief Set current storage backend class
-        * If $class is an empty string, legacy db storage is used.
         *
         * @param string $class Backend class name
         * @return bool
@@ -61,7 +60,7 @@ class StorageManager
         */
        public static function setBackend($class)
        {
-               if ($class !== "" && !in_array('Friendica\Model\Storage\IStorage', class_implements($class))) {
+               if (!in_array('Friendica\Model\Storage\IStorage', class_implements($class))) {
                        return false;
                }