Commit 4165a693 authored by webchick's avatar webchick

Issue #2069191 by aspilicious, dawehner: Fixed PageTitle tests aren't run.

parent 93bdc95d
......@@ -2554,7 +2554,13 @@ function template_preprocess_html(&$variables) {
$site_config = Drupal::config('system.site');
// Construct page title.
if (drupal_get_title()) {
if (isset($variables['page']['#title'])) {
$head_title = array(
'title' => strip_tags($variables['page']['#title']),
'name' => String::checkPlain($site_config->get('name')),
);
}
elseif (drupal_get_title()) {
$head_title = array(
'title' => strip_tags(drupal_get_title()),
'name' => check_plain($site_config->get('name')),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment