mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:50:12 +00:00
Fixings
- Rename "facStorage" to "storageManager" - Fix indentation - Fix tests
This commit is contained in:
parent
bfae6766bf
commit
016cfcd846
7 changed files with 45 additions and 46 deletions
|
@ -259,7 +259,7 @@ class Attach
|
|||
$items = self::selectToArray(['backend-class','backend-ref'], $conditions);
|
||||
|
||||
foreach($items as $item) {
|
||||
$backend_class = DI::facStorage()->getByName($item['backend-class'] ?? '');
|
||||
$backend_class = DI::storageManager()->getByName($item['backend-class'] ?? '');
|
||||
if ($backend_class !== '') {
|
||||
$fields['backend-ref'] = $backend_class->put($img->asString(), $item['backend-ref'] ?? '');
|
||||
} else {
|
||||
|
@ -291,7 +291,7 @@ class Attach
|
|||
$items = self::selectToArray(['backend-class','backend-ref'], $conditions);
|
||||
|
||||
foreach($items as $item) {
|
||||
$backend_class = DI::facStorage()->getByName($item['backend-class'] ?? '');
|
||||
$backend_class = DI::storageManager()->getByName($item['backend-class'] ?? '');
|
||||
if ($backend_class !== null) {
|
||||
$backend_class->delete($item['backend-ref'] ?? '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue