Merge branch 'master' into bugfix/invalid-host-passive-check-9672

This commit is contained in:
Alexander Fuhr 2015-08-04 13:57:11 +02:00
commit 7ad6a76d7a
1 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,21 @@ use Icinga\Web\Controller;
class DocController extends Controller class DocController extends Controller
{ {
/**
* {@inheritdoc}
*/
protected function moduleInit()
{
// Our UrlParams object does not take parameters from custom routes into account which is why we have to set
// them explicitly
if ($this->hasParam('chapter')) {
$this->params->set('chapter', $this->getParam('chapter'));
}
if ($this->hasParam('moduleName')) {
$this->params->set('moduleName', $this->getParam('moduleName'));
}
}
/** /**
* Render a chapter * Render a chapter
* *