mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +02:00
DashboardsController: $this->httpNotFound()
already accepts format params
there's no need to use `sprintf` explicitly
This commit is contained in:
parent
3041d7d3c1
commit
2f09dbe68a
@ -168,7 +168,7 @@ class DashboardsController extends CompatController
|
|||||||
$this->dashboard->load($home);
|
$this->dashboard->load($home);
|
||||||
|
|
||||||
if (! $this->dashboard->getActiveHome()->hasEntry($pane)) {
|
if (! $this->dashboard->getActiveHome()->hasEntry($pane)) {
|
||||||
$this->httpNotFound(sprintf(t('Pane "%s" not found'), $pane));
|
$this->httpNotFound(t('Pane "%s" not found'), $pane);
|
||||||
}
|
}
|
||||||
|
|
||||||
$paneForm = (new HomePaneForm($this->dashboard))
|
$paneForm = (new HomePaneForm($this->dashboard))
|
||||||
@ -191,7 +191,7 @@ class DashboardsController extends CompatController
|
|||||||
$this->dashboard->load($home);
|
$this->dashboard->load($home);
|
||||||
|
|
||||||
if (! $this->dashboard->getActiveHome()->hasEntry($paneParam)) {
|
if (! $this->dashboard->getActiveHome()->hasEntry($paneParam)) {
|
||||||
$this->httpNotFound(sprintf(t('Pane "%s" not found'), $paneParam));
|
$this->httpNotFound(t('Pane "%s" not found'), $paneParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
$paneForm = new RemoveHomePaneForm($this->dashboard);
|
$paneForm = new RemoveHomePaneForm($this->dashboard);
|
||||||
@ -459,12 +459,12 @@ class DashboardsController extends CompatController
|
|||||||
$this->dashboard->load($home);
|
$this->dashboard->load($home);
|
||||||
|
|
||||||
if (! $this->dashboard->getActiveHome()->hasEntry($pane)) {
|
if (! $this->dashboard->getActiveHome()->hasEntry($pane)) {
|
||||||
$this->httpNotFound(sprintf(t('Pane "%s" not found'), $pane));
|
$this->httpNotFound(t('Pane "%s" not found'), $pane);
|
||||||
}
|
}
|
||||||
|
|
||||||
$pane = $this->dashboard->getActiveHome()->getEntry($pane);
|
$pane = $this->dashboard->getActiveHome()->getEntry($pane);
|
||||||
if (! $pane->hasEntry($dashlet)) {
|
if (! $pane->hasEntry($dashlet)) {
|
||||||
$this->httpNotFound(sprintf(t('Dashlet "%s" not found'), $dashlet));
|
$this->httpNotFound(t('Dashlet "%s" not found'), $dashlet);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $pane;
|
return $pane;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user