diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 5827a8e..229b359 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -178,7 +178,8 @@ final class ApiController extends Controller $old = clone $profile; $uploaded = $this->app->moduleManager->get('Media')->uploadFiles( - [$request->getData('name') ?? ''], + $request->getDataList('names') ?? [], + $request->getDataList('filenames') ?? [], $uploadedFiles, $request->header->account, __DIR__ . '/../../../Modules/Media/Files/Accounts/' . $profile->account->getId() . ' ' . $profile->account->login, diff --git a/Models/NullContact.php b/Models/NullContact.php index 376067e..6d79652 100755 --- a/Models/NullContact.php +++ b/Models/NullContact.php @@ -24,7 +24,7 @@ namespace Modules\Profile\Models; */ final class NullContact extends Contact { - /** + /** * Constructor * * @param int $id Model id diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php index 45db56f..c80bdef 100755 --- a/Theme/Backend/profile-single.tpl.php +++ b/Theme/Backend/profile-single.tpl.php @@ -281,8 +281,8 @@ echo $this->getData('nav')->render();

getHtml('Numberformat'); ?>

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(); diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 48a8373..9ba3868 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -132,7 +132,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $request = new HttpRequest(new HttpUri('')); $request->header->account = 1; - $request->setData('name', 'Profile Logo'); + $request->setData('names', 'Profile Logo'); $request->setData('id', 1); TestUtils::setMember($request, 'files', [