mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-11 12:58:41 +00:00
fix getters/setters
This commit is contained in:
parent
3d5c9b2101
commit
60617c0f72
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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') ?? '', ':');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user