mirror of
https://github.com/friendica/friendica
synced 2025-04-29 13:04:23 +02:00
Add storage backend manager class
This commit is contained in:
parent
e5c2d4e2f8
commit
6a0ed7c298
2 changed files with 104 additions and 1 deletions
|
@ -11,6 +11,7 @@ use Friendica\Core\Cache;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\StorageManager;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBStructure;
|
||||
use Friendica\Object\Image;
|
||||
|
@ -263,7 +264,7 @@ class Photo extends BaseObject
|
|||
$backend_ref = (string)$existing_photo["backend-ref"];
|
||||
$backend_class = (string)$existing_photo["backend-class"];
|
||||
} else {
|
||||
$backend_class = Config::get("storage", "class", "");
|
||||
$backend_class = StorageManager::getBackend();
|
||||
}
|
||||
if ($backend_class === "") {
|
||||
$data = $Image->asString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue