ActionController: if/else should be easy to read
This commit is contained in:
parent
b7fc0b67a8
commit
2cd25b7376
|
@ -112,17 +112,17 @@ class ActionController extends Zend_Controller_Action
|
||||||
$this->handlerBrowserWindows();
|
$this->handlerBrowserWindows();
|
||||||
$this->view->translationDomain = 'icinga';
|
$this->view->translationDomain = 'icinga';
|
||||||
|
|
||||||
if ($this->requiresConfig() === false) {
|
if ($this->requiresConfig()) {
|
||||||
if ($this->requiresLogin() === false) {
|
|
||||||
$this->view->tabs = new Tabs();
|
|
||||||
$this->moduleInit();
|
|
||||||
$this->init();
|
|
||||||
} else {
|
|
||||||
$this->redirectToLogin(Url::fromRequest());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$this->redirectNow(Url::fromPath('install'));
|
$this->redirectNow(Url::fromPath('install'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->requiresLogin()) {
|
||||||
|
$this->redirectToLogin(Url::fromRequest());
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->view->tabs = new Tabs();
|
||||||
|
$this->moduleInit();
|
||||||
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Config($file = null)
|
public function Config($file = null)
|
||||||
|
|
Loading…
Reference in New Issue