From 60617c0f729dd81c9c5a1b39617f64d49897a83f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2023 12:03:53 +0000 Subject: [PATCH] fix getters/setters --- Controller/BackendController.php | 2 +- Controller/Controller.php | 4 ++-- Controller/SearchController.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 63fc709..7aa0c72 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -231,7 +231,7 @@ final class BackendController extends Controller $path = \realpath($basePath . '/' . $page . '.md'); if ($path === false) { - $basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $this->app->l11nServer->getLanguage(); + $basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $this->app->l11nServer->language; $path = \realpath($basePath . '/' . $page . '.md'); } diff --git a/Controller/Controller.php b/Controller/Controller.php index 2248932..37dae9a 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -64,7 +64,7 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $providing = []; + public static array $providing = []; /** * Dependencies. @@ -72,5 +72,5 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $dependencies = []; + public static array $dependencies = []; } diff --git a/Controller/SearchController.php b/Controller/SearchController.php index c66723d..d821f86 100755 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -48,8 +48,8 @@ final class SearchController extends Controller if (\is_dir(__DIR__ . '/../Docs/Help/' . $request->header->l11n->language)) { $lang = $request->header->l11n->language; - } elseif (\is_dir(__DIR__ . '/../Docs/Help/' . $this->app->l11nServer->getLanguage())) { - $lang = $this->app->l11nServer->getLanguage(); + } elseif (\is_dir(__DIR__ . '/../Docs/Help/' . $this->app->l11nServer->language)) { + $lang = $this->app->l11nServer->language; } $searchIdStartPos = \stripos($request->getDataString('search') ?? '', ':');