mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
doc/search: do not break on "ill-formed" docs
We got ugly exceptions for non-obvious errors such as missing titles
This commit is contained in:
parent
6bf8849d98
commit
697d4aff27
@ -36,15 +36,15 @@ class Doc_SearchController extends DocController
|
||||
if (($path = $this->getModulePath($module)) !== null) {
|
||||
try {
|
||||
$parser = new DocParser($path);
|
||||
$search = new DocSearchRenderer(
|
||||
new DocSearchIterator(
|
||||
$parser->getDocTree()->getIterator(),
|
||||
new DocSearch($this->params->get('q'))
|
||||
)
|
||||
);
|
||||
} catch (DocException $e) {
|
||||
continue;
|
||||
}
|
||||
$search = new DocSearchRenderer(
|
||||
new DocSearchIterator(
|
||||
$parser->getDocTree()->getIterator(),
|
||||
new DocSearch($this->params->get('q'))
|
||||
)
|
||||
);
|
||||
$search
|
||||
->setUrl('doc/module/chapter')
|
||||
->setUrlParams(array('moduleName' => $module));
|
||||
|
Loading…
x
Reference in New Issue
Block a user