mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
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',
|
'X-Icinga-Title',
|
||||||
rawurlencode($this->view->title . ' :: Icinga Web')
|
rawurlencode($this->view->title . ' :: Icinga Web')
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$resp->setHeader('X-Icinga-Title', rawurlencode('Icinga Web'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->rerenderLayout) {
|
if ($this->rerenderLayout) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user