continue with getter/setter removal

This commit is contained in:
Dennis Eichhorn 2023-05-30 04:15:36 +02:00
parent 7f86e3def3
commit 48f03194b6
2 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ final class BackendController extends Controller
$type = \substr($decoded, 0, $typePos); $type = \substr($decoded, 0, $typePos);
} }
$basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $request->getLanguage(); $basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $request->header->l11n->language;
$path = \realpath($basePath . '/' . $page . '.md'); $path = \realpath($basePath . '/' . $page . '.md');
if ($path === false) { if ($path === false) {

View File

@ -46,8 +46,8 @@ final class SearchController extends Controller
{ {
$lang = 'en'; $lang = 'en';
if (\is_dir(__DIR__ . '/../Docs/Help/' . $request->getLanguage())) { if (\is_dir(__DIR__ . '/../Docs/Help/' . $request->header->l11n->language)) {
$lang = $request->getLanguage(); $lang = $request->header->l11n->language;
} elseif (\is_dir(__DIR__ . '/../Docs/Help/' . $this->app->l11nServer->getLanguage())) { } elseif (\is_dir(__DIR__ . '/../Docs/Help/' . $this->app->l11nServer->getLanguage())) {
$lang = $this->app->l11nServer->getLanguage(); $lang = $this->app->l11nServer->getLanguage();
} }