ActionController: set a default window title
In case a controller action didn't set a view title this fix restores the default title on XHR requests. fixes #6797
This commit is contained in:
parent
51484ebf88
commit
8f729bfb65
|
@ -362,6 +362,8 @@ class ActionController extends Zend_Controller_Action
|
|||
'X-Icinga-Title',
|
||||
rawurlencode($this->view->title . ' :: Icinga Web')
|
||||
);
|
||||
} else {
|
||||
$resp->setHeader('X-Icinga-Title', rawurlencode('Icinga Web'));
|
||||
}
|
||||
|
||||
if ($this->rerenderLayout) {
|
||||
|
|
Loading…
Reference in New Issue