Small syntax changes

This commit is contained in:
Thomas Gelf 2014-02-18 18:11:44 +00:00
parent ac0faa26a8
commit 6b308986d1

View File

@ -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();