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:
parent
b0b4f08797
commit
3edda43bca
|
@ -511,11 +511,11 @@ class ActionController extends Zend_Controller_Action
|
|||
}
|
||||
$resp->setHeader(
|
||||
'X-Icinga-Title',
|
||||
rawurlencode($this->view->title . ' :: ' . static::DEFAULT_TITLE),
|
||||
rawurlencode($this->view->title . ' :: ' . $this->view->defaultTitle),
|
||||
true
|
||||
);
|
||||
} 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();
|
||||
|
|
Loading…
Reference in New Issue