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
1 changed files with 2 additions and 2 deletions

View File

@ -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();