From 48ae5bef3b5897b0f9335e5f59588c42611cf4a5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 2 May 2024 22:54:38 +0000 Subject: [PATCH] Went through todos --- Admin/Routes/Web/Api.php | 8 ++++---- Theme/Backend/profile-view.tpl.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 2768aad..c2ed0ab 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -20,7 +20,7 @@ use phpOMS\Router\RouteVerb; return [ - '^.*/view$' => [ + '^.*/profile(\?.*|$)$' => [ [ 'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate', 'verb' => RouteVerb::PUT, @@ -34,7 +34,7 @@ ], ], - '^.*/view/settings/localization(\?.*|$)' => [ + '^.*/profile/settings/localization(\?.*|$)' => [ [ 'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet', 'verb' => RouteVerb::SET, @@ -47,7 +47,7 @@ ], ], ], - '^.*/view/settings/password(\?.*|$)' => [ + '^.*/profile/settings/password(\?.*|$)' => [ [ 'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet', 'verb' => RouteVerb::SET, @@ -60,7 +60,7 @@ ], ], ], - '^.*/view/settings/image(\?.*|$)' => [ + '^.*/profile/settings/image(\?.*|$)' => [ [ 'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet', 'verb' => RouteVerb::SET, diff --git a/Theme/Backend/profile-view.tpl.php b/Theme/Backend/profile-view.tpl.php index 99ced51..03d46dc 100644 --- a/Theme/Backend/profile-view.tpl.php +++ b/Theme/Backend/profile-view.tpl.php @@ -63,9 +63,9 @@ src="image->id === 0 ? UriFactory::build($this->data['defaultImage']->getPath()) : UriFactory::build($profile->image->getPath()); ?>" - width="100px"> + width="100px" style="margin-bottom: .5rem;"> request->header->account === $profile->account->id) : ?> -