mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-11 04:48:41 +00:00
fix help search
This commit is contained in:
parent
29e81829da
commit
e587b19bb8
|
|
@ -67,7 +67,7 @@ final class SearchController extends Controller
|
|||
$files = [];
|
||||
|
||||
/** @var array<array{name:array{internal:string, external:string}}> @activeModules */
|
||||
$activeModules = $this->app->moduleManager->getActiveModules();
|
||||
$activeModules = $this->app->moduleManager->getActiveModules(false);
|
||||
foreach ($activeModules as $module) {
|
||||
$path = __DIR__ . '/../../' . $module['name']['internal'] . '/Docs/Help/' . $lang;
|
||||
|
||||
|
|
@ -130,7 +130,6 @@ final class SearchController extends Controller
|
|||
|
||||
// @todo: probably cleanup return for link generation + sort by best match
|
||||
$response->header->set('Content-Type', MimeType::M_JSON . '; charset=utf-8', true);
|
||||
|
||||
$response->set($request->uri->__toString(), $files);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user