Revert b2794bb2c 'Allow set empty string storge class for legacy'

This commit is contained in:
fabrixxm 2019-04-10 08:35:44 +02:00
parent b2794bb2c9
commit 72bee45079

View file

@ -29,8 +29,8 @@ class StorageManager
} }
/** /**
* @brief Return current storage backend class * @brief Return current storage backend class
* *
* @return string * @return string
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/ */
@ -53,7 +53,6 @@ class StorageManager
/** /**
* @brief Set current storage backend class * @brief Set current storage backend class
* If $class is an empty string, legacy db storage is used.
* *
* @param string $class Backend class name * @param string $class Backend class name
* @return bool * @return bool
@ -61,7 +60,7 @@ class StorageManager
*/ */
public static function setBackend($class) 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; return false;
} }