Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4165a693
Commit
4165a693
authored
Aug 22, 2013
by
webchick
Browse files
Issue
#2069191
by aspilicious, dawehner: Fixed PageTitle tests aren't run.
parent
93bdc95d
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/includes/theme.inc
View file @
4165a693
...
...
@@ -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'
)),
...
...
core/modules/system/lib/Drupal/system/Tests/System/PageTitle
Filtering
Test.php
→
core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php
View file @
4165a693
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment