mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Small syntax changes
This commit is contained in:
parent
ac0faa26a8
commit
6b308986d1
@ -29,16 +29,15 @@
|
|||||||
|
|
||||||
namespace Icinga\Web\Widget;
|
namespace Icinga\Web\Widget;
|
||||||
|
|
||||||
use \Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use \Icinga\Application\Config as IcingaConfig;
|
use Icinga\Application\Config as IcingaConfig;
|
||||||
use \Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
use \Icinga\Exception\ConfigurationError;
|
use Icinga\Exception\ConfigurationError;
|
||||||
use \Icinga\Web\Widget\Widget;
|
use Icinga\Web\Widget\AbstractWidget;
|
||||||
use \Icinga\Web\Widget\Dashboard\Pane;
|
use Icinga\Web\Widget\Dashboard\Pane;
|
||||||
use \Icinga\Web\Widget\Dashboard\Component as DashboardComponent;
|
use Icinga\Web\Widget\Dashboard\Component as DashboardComponent;
|
||||||
|
use Icinga\Web\Url;
|
||||||
use \Icinga\Web\Url;
|
use Zend_View_Abstract;
|
||||||
use \Zend_View_Abstract;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dashboards display multiple views on a single page
|
* Dashboards display multiple views on a single page
|
||||||
@ -326,7 +325,7 @@ class Dashboard implements Widget
|
|||||||
public function determineActivePane()
|
public function determineActivePane()
|
||||||
{
|
{
|
||||||
$active = $this->getTabs()->getActiveName();
|
$active = $this->getTabs()->getActiveName();
|
||||||
if (!$active) {
|
if (! $active) {
|
||||||
if ($active = Url::fromRequest()->getParam($this->tabParam)) {
|
if ($active = Url::fromRequest()->getParam($this->tabParam)) {
|
||||||
if ($this->isEmptyPane($active)) {
|
if ($this->isEmptyPane($active)) {
|
||||||
$active = $this->setDefaultPane();
|
$active = $this->setDefaultPane();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user