From 4e2a3f5f77a59d90d7fdeeb9e9567bffa75e00ff Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 10 Feb 2023 18:20:57 +0100 Subject: [PATCH] many small fixes --- Controller/ApiController.php | 4 ++-- Theme/Backend/Lang/api.de.lang.php | 16 ---------------- Theme/Backend/Lang/api.en.lang.php | 16 ---------------- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100755 Theme/Backend/Lang/api.de.lang.php delete mode 100755 Theme/Backend/Lang/api.en.lang.php diff --git a/Controller/ApiController.php b/Controller/ApiController.php index c2f0a9d..1f133a6 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -458,7 +458,7 @@ final class ApiController extends Controller $collection->setPath('/Modules/Media/Files/Modules/Helper/' . ((string) ($request->getData('name') ?? ''))); $collection->setVirtualPath('/Modules/Helper'); - CollectionMapper::create()->execute($collection); + $this->createModel($request->header->account, $collection, CollectionMapper::class, 'collection', $request->getOrigin()); $template = $this->createTemplateFromRequest($request, $collection->getId()); @@ -610,7 +610,7 @@ final class ApiController extends Controller return; } - CollectionMapper::create()->execute($collection); + $this->createModel($request->header->account, $collection, CollectionMapper::class, 'collection', $request->getOrigin()); $report = $this->createReportFromRequest($request, $response, $collection->getId()); diff --git a/Theme/Backend/Lang/api.de.lang.php b/Theme/Backend/Lang/api.de.lang.php deleted file mode 100755 index 19c09e6..0000000 --- a/Theme/Backend/Lang/api.de.lang.php +++ /dev/null @@ -1,16 +0,0 @@ - [ -]]; diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php deleted file mode 100755 index 19c09e6..0000000 --- a/Theme/Backend/Lang/api.en.lang.php +++ /dev/null @@ -1,16 +0,0 @@ - [ -]];