mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
doc/IcingawebController: Use sprintf for "Missing parameter x" exceptions
This commit is contained in:
parent
08bbe59679
commit
7605076dc5
@ -50,7 +50,7 @@ class Doc_IcingawebController extends DocController
|
|||||||
$chapterId = $this->getParam('chapterId');
|
$chapterId = $this->getParam('chapterId');
|
||||||
if ($chapterId === null) {
|
if ($chapterId === null) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
throw new Zend_Controller_Action_Exception(
|
||||||
$this->translate('Missing parameter \'chapterId\''),
|
sprintf($this->translate('Missing parameter \'%s\''), 'chapterId'),
|
||||||
404
|
404
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user