mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-11 12:58:41 +00:00
continue with getter/setter removal
This commit is contained in:
parent
7f86e3def3
commit
48f03194b6
|
|
@ -227,7 +227,7 @@ final class BackendController extends Controller
|
|||
$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');
|
||||
|
||||
if ($path === false) {
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ final class SearchController extends Controller
|
|||
{
|
||||
$lang = 'en';
|
||||
|
||||
if (\is_dir(__DIR__ . '/../Docs/Help/' . $request->getLanguage())) {
|
||||
$lang = $request->getLanguage();
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user