ActionController: Utilize view variable $defaultTitle instead of the constant

Allows controllers to also customize the default title with translated contents.

refs #3851
This commit is contained in:
Johannes Meyer 2019-07-12 10:16:46 +02:00
parent b0b4f08797
commit 3edda43bca

View File

@ -511,11 +511,11 @@ class ActionController extends Zend_Controller_Action
} }
$resp->setHeader( $resp->setHeader(
'X-Icinga-Title', 'X-Icinga-Title',
rawurlencode($this->view->title . ' :: ' . static::DEFAULT_TITLE), rawurlencode($this->view->title . ' :: ' . $this->view->defaultTitle),
true true
); );
} else { } else {
$resp->setHeader('X-Icinga-Title', rawurlencode(static::DEFAULT_TITLE), true); $resp->setHeader('X-Icinga-Title', rawurlencode($this->view->defaultTitle), true);
} }
$layout = $this->_helper->layout(); $layout = $this->_helper->layout();