From 54a4af4f6f373edaf2b0f8549cb74f391c3d4474 Mon Sep 17 00:00:00 2001 From: Ingolf Steinardt Date: Thu, 23 May 2024 15:26:06 +0200 Subject: [PATCH] Fix picker for pages and load language file --- src/Contao/Picker/PagePickerProvider.php | 6 +++--- src/Controller/BackendTreeController.php | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Contao/Picker/PagePickerProvider.php b/src/Contao/Picker/PagePickerProvider.php index fce99844..2b9df710 100644 --- a/src/Contao/Picker/PagePickerProvider.php +++ b/src/Contao/Picker/PagePickerProvider.php @@ -3,7 +3,7 @@ /** * This file is part of contao-community-alliance/dc-general. * - * (c) 2013-2019 Contao Community Alliance. + * (c) 2013-2024 Contao Community Alliance. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -12,7 +12,7 @@ * * @package contao-community-alliance/dc-general * @author Sven Baumann - * @copyright 2013-2019 Contao Community Alliance. + * @copyright 2013-2024 Contao Community Alliance. * @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ @@ -67,7 +67,7 @@ public function __construct( */ public function getName() { - return 'pagePicker'; + return 'ccaPagePicker'; } /** diff --git a/src/Controller/BackendTreeController.php b/src/Controller/BackendTreeController.php index 4adf03e9..7bdee50c 100644 --- a/src/Controller/BackendTreeController.php +++ b/src/Controller/BackendTreeController.php @@ -3,7 +3,7 @@ /** * This file is part of contao-community-alliance/dc-general. * - * (c) 2013-2023 Contao Community Alliance. + * (c) 2013-2024 Contao Community Alliance. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -15,7 +15,7 @@ * @author Sven Baumann * @author Kim Wormer * @author Ingolf Steinhardt - * @copyright 2013-2023 Contao Community Alliance. + * @copyright 2013-2024 Contao Community Alliance. * @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ @@ -135,6 +135,7 @@ private function initializeAndExtractRequest(): Request $controller = $framework->getAdapter(Controller::class); /** @psalm-suppress DeprecatedMethod */ $controller->setStaticUrls(); + $controller->loadLanguageFile('default'); $requestStack = $container->get('request_stack'); assert($requestStack instanceof RequestStack);