Skip to content
Snippets Groups Projects
Commit 854d07b1 authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-202] Merging from testing into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@950 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 17d41d65
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ function unl_wdn_preprocess_html(&$vars, $hook) {
array_unshift($head_title, 'UNL');
}
$vars['head_title'] = implode(' | ', $head_title);
$vars['head_title'] = check_plain(implode(' | ', $head_title));
}
function unl_wdn_preprocess_node(&$vars) {
......@@ -102,12 +102,12 @@ function unl_wdn_breadcrumb($variables) {
$breadcrumbs = $variables['breadcrumb'];
if (count($breadcrumbs) == 0) {
$breadcrumbs[] = '<a href="">' . unl_get_site_name_abbreviated() . '</a>';
$breadcrumbs[] = '<a href="">' . check_plain(unl_wdn_get_site_name_abbreviated()) . '</a>';
}
else {
//Change 'Home' to be $site_name
array_unshift($breadcrumbs,
str_replace('Home', unl_get_site_name_abbreviated(),
str_replace('Home', check_plain(unl_wdn_get_site_name_abbreviated()),
array_shift($breadcrumbs)));
}
......@@ -117,7 +117,7 @@ function unl_wdn_breadcrumb($variables) {
krsort($intermediateBreadcrumbs);
foreach ($intermediateBreadcrumbs as $intermediateBreadcrumb) {
if ($intermediateBreadcrumb['text'] && $intermediateBreadcrumb['href']) {
array_unshift($breadcrumbs, '<a href="' . $intermediateBreadcrumb['href'] . '">' . $intermediateBreadcrumb['text'] . '</a>');
array_unshift($breadcrumbs, '<a href="' . $intermediateBreadcrumb['href'] . '">' . check_plain($intermediateBreadcrumb['text']) . '</a>');
}
}
}
......@@ -253,7 +253,7 @@ EOF;
* Return the abbreviated site name, assuming it has been set and we're not on the front page.
* Otherwise, it returns the full site name.
*/
function unl_get_site_name_abbreviated() {
function unl_wdn_get_site_name_abbreviated() {
if (!drupal_is_front_page() && theme_get_setting('site_name_abbreviation')) {
return theme_get_setting('site_name_abbreviation');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment