X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FAttach.php;h=55ab81a8aee8dda07e9e58bd03de9fa590b12d51;hb=8b3a9fc58a969a3d9202f6858d5228f3a28be1ef;hp=b2cc229c3d00101884dc3c618b1ac0b10fa49c32;hpb=8ba3f13faeb6c3b62ba106b6a05014c58fbb4df9;p=friendica.git diff --git a/src/Model/Attach.php b/src/Model/Attach.php index b2cc229c3d..55ab81a8ae 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -23,7 +23,6 @@ namespace Friendica\Model; use Friendica\Core\System; use Friendica\Database\DBA; -use Friendica\Database\DBStructure; use Friendica\DI; use Friendica\Core\Storage\Exception\InvalidClassStorageException; use Friendica\Core\Storage\Exception\ReferenceStorageException; @@ -46,7 +45,7 @@ class Attach */ private static function getFields(): array { - $allfields = DBStructure::definition(DI::app()->getBasePath(), false); + $allfields = DI::dbaDefinition()->getAll(); $fields = array_keys($allfields['attach']['fields']); array_splice($fields, array_search('data', $fields), 1); return $fields;