Commit 7156c949 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-732] If ndash is used in site_name it will be the character

This really isn't an issue since we don't have the unl home
page in the system but nonetheless you can't save –
in the site name field as it will double encode it
parent cf367de4
......@@ -197,11 +197,11 @@ function unl_wdn_preprocess_html(&$vars, $hook) {
}
if (!module_exists('metatag')) {
// Set the <title> tag to UNL format: Page Title | Site Name | University of Nebraska&ndash;Lincoln
// Set the <title> tag to UNL format: Page Title | Site Name | University of NebraskaLincoln
if ($vars['is_front']) {
unset($vars['head_title_array']['title']);
}
if (variable_get('site_name') != 'University of Nebraska&ndash;Lincoln') {
if (variable_get('site_name') != 'University of NebraskaLincoln') {
$vars['head_title_array'] = array_merge($vars['head_title_array'], array('UNL' => 'University of Nebraska&ndash;Lincoln'));
}
$vars['head_title'] = implode(' | ', $vars['head_title_array']);
......
Supports Markdown
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