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:
Thomas Gelf 2014-07-31 17:04:26 +02:00
parent 51484ebf88
commit 8f729bfb65
1 changed files with 2 additions and 0 deletions

View File

@ -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) {