From f6a8f44420e13b3a9fc31093c06d77c03917a645 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 31 Mar 2022 00:09:26 +0100 Subject: [PATCH] [COMPONENT][Person][TEMPLATES] Move persosn settings template from core to the component --- components/Person/Controller/PersonSettings.php | 2 +- .../Person/templates/person/settings.html.twig | 0 plugins/Oomox/Oomox.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename templates/settings/base.html.twig => components/Person/templates/person/settings.html.twig (100%) diff --git a/components/Person/Controller/PersonSettings.php b/components/Person/Controller/PersonSettings.php index 7a4f9ee26d..da5f9543ae 100644 --- a/components/Person/Controller/PersonSettings.php +++ b/components/Person/Controller/PersonSettings.php @@ -103,7 +103,7 @@ class PersonSettings extends Controller $language_form = $language->settings($request); return [ - '_template' => 'settings/base.html.twig', + '_template' => 'person/settings.html.twig', 'personal_info_form' => $personal_form->createView(), 'email_form' => $email_form->createView(), 'password_form' => $password_form->createView(), diff --git a/templates/settings/base.html.twig b/components/Person/templates/person/settings.html.twig similarity index 100% rename from templates/settings/base.html.twig rename to components/Person/templates/person/settings.html.twig diff --git a/plugins/Oomox/Oomox.php b/plugins/Oomox/Oomox.php index d32a83e733..1d07f3a298 100644 --- a/plugins/Oomox/Oomox.php +++ b/plugins/Oomox/Oomox.php @@ -59,7 +59,7 @@ class Oomox extends Plugin /** * Populates an additional profile user panel section - * Used in templates/settings/base.html.twig + * Used in 'person/settings.html.twig' * * @throws \App\Util\Exception\NoLoggedInUser * @throws RedirectException