mirror of
https://github.com/friendica/friendica
synced 2024-11-19 08:23:40 +00:00
Revert b2794bb2c
'Allow set empty string storge class for legacy'
This commit is contained in:
parent
b2794bb2c9
commit
72bee45079
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue