From 3ea6a605f4857cc6c6fb8b0f9a43531bd0e4427e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 29 Oct 2021 14:49:55 +0200 Subject: [PATCH] bug and media fixes --- Controller/ApiController.php | 3 ++- tests/Bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 5b63a41..b209d64 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -113,7 +113,8 @@ final class ApiController extends Controller if (!empty($uploadedFiles = $request->getFiles() ?? [])) { $uploaded = $this->app->moduleManager->get('Media')->uploadFiles( - [''], + [], + [], $uploadedFiles, $request->header->account, __DIR__ . '/../../../Modules/Media/Files/Modules/Knowledgebase', diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 051ac7e..f5fc99c 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -392,4 +392,4 @@ function phpServe() : void }); } -phpServe(); +\phpServe();