Skip to content
Snippets Groups Projects
Commit d61f0f9a authored by Steven Wittens's avatar Steven Wittens
Browse files

- #27346: Don't display trailing | in page title with empty slogan.

parent 6237754d
No related branches found
No related tags found
No related merge requests found
......@@ -114,9 +114,20 @@ function xtemplate_comment($comment, $links = 0) {
function xtemplate_page($content) {
global $xtemplate;
// Construct page title
if (drupal_get_title()) {
$head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'drupal'));
}
else {
$head_title = array(variable_get('site_name', 'drupal'));
if (variable_get('site_slogan', '')) {
$head_title[] = variable_get('site_slogan', '');
}
}
$xtemplate->template->assign(array(
"language" => $GLOBALS['locale'],
"head_title" => (drupal_get_title() ? strip_tags(drupal_get_title()) ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")),
"head_title" => implode(' | ', $head_title),
"head" => drupal_get_html_head(),
"styles" => theme_get_styles(),
"onload_attributes" => theme_onload_attribute(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment