mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
monitoring: Use @inheritdoc for HostController::$commandRedirectUrl
This commit is contained in:
parent
1f922a7da6
commit
c8927a36dc
@ -15,9 +15,9 @@ use Icinga\Web\Hook;
|
|||||||
|
|
||||||
class HostController extends MonitoredObjectController
|
class HostController extends MonitoredObjectController
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see MonitoredObjectController::$commandRedirectUrl For the property documentation.
|
|
||||||
*/
|
*/
|
||||||
protected $commandRedirectUrl = 'monitoring/host/show';
|
protected $commandRedirectUrl = 'monitoring/host/show';
|
||||||
|
|
||||||
@ -27,9 +27,7 @@ class HostController extends MonitoredObjectController
|
|||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$host = new Host($this->backend, $this->params->getRequired('host'));
|
$host = new Host($this->backend, $this->params->getRequired('host'));
|
||||||
|
|
||||||
$this->applyRestriction('monitoring/filter/objects', $host);
|
$this->applyRestriction('monitoring/filter/objects', $host);
|
||||||
|
|
||||||
if ($host->fetch() === false) {
|
if ($host->fetch() === false) {
|
||||||
$this->httpNotFound($this->translate('Host not found'));
|
$this->httpNotFound($this->translate('Host not found'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user