fix getters/setters

This commit is contained in:
Dennis Eichhorn 2023-05-31 12:03:53 +00:00
parent 3d5c9b2101
commit 60617c0f72
3 changed files with 5 additions and 5 deletions

View File

@ -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');
}

View File

@ -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 = [];
}

View File

@ -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') ?? '', ':');