From 7e84f2fe30246e4517592639c0a60407b24d884d Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Tue, 11 Feb 2014 08:49:42 -0500 Subject: [PATCH] Fixed forum links Moving the forum path under "community" caused links in forum lists and breadcrumbs to be incorrect. Updated to use the new path. (DBOINCP-59) --- .../default/boinc/themes/boinc/templates/forum-list.tpl.php | 2 +- .../boinc/themes/boinc/templates/forum-topic-list.tpl.php | 2 +- .../default/boinc/themes/boinc/templates/node-forum.tpl.php | 4 ++-- .../boinc/themes/boinc/templates/node-team_forum.tpl.php | 2 +- .../templates/views-view--boinc-team-forum-topics.tpl.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drupal/sites/default/boinc/themes/boinc/templates/forum-list.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/forum-list.tpl.php index 685cf11b28..454b98d8c6 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/forum-list.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/forum-list.tpl.php @@ -51,7 +51,7 @@ * left-margin for indenting. */ ?> ', $forum->depth); ?> -
name; ?>
+
name, "community/forum/{$forum->tid}", array('html' => TRUE)); ?>
description): ?>
description; ?>
diff --git a/drupal/sites/default/boinc/themes/boinc/templates/forum-topic-list.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/forum-topic-list.tpl.php index 24c0dd2b3a..c82e27ebfb 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/forum-topic-list.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/forum-topic-list.tpl.php @@ -49,7 +49,7 @@ ?>

- name, 'forum') . ' › '; ?> + name, 'community/forum') . ' › '; ?> name; ?>

diff --git a/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php index bcb32be71b..6a11378543 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php @@ -91,10 +91,10 @@ // Get vocabulary name and taxonomy name for subtitle breadcrumbs $taxonomy = current($node->taxonomy); if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) { - $subtitle[] = l($forum_vocab->name, 'forum'); + $subtitle[] = l($forum_vocab->name, 'community/forum'); } if (isset($taxonomy->name)) { - $subtitle[] = l($taxonomy->name, "forum/{$taxonomy->tid}"); + $subtitle[] = l($taxonomy->name, "community/forum/{$taxonomy->tid}"); } $subtitle = implode(' › ', $subtitle); } diff --git a/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php index 13743d24e4..2710c3a000 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php @@ -100,7 +100,7 @@ // Get vocabulary name and taxonomy name for subtitle breadcrumbs $taxonomy = taxonomy_get_term($forum_node->tid); if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) { - $subtitle[] = l($forum_vocab->name, 'forum'); + $subtitle[] = l($forum_vocab->name, 'community/forum'); } if ($team_forum) { $subtitle[] = l($team_forum->title, "community/teams/{$team_forum->nid}/forum/{$team_forum->tfid}"); diff --git a/drupal/sites/default/boinc/themes/boinc/templates/views-view--boinc-team-forum-topics.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/views-view--boinc-team-forum-topics.tpl.php index 651036b08f..16199842e7 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/views-view--boinc-team-forum-topics.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/views-view--boinc-team-forum-topics.tpl.php @@ -76,7 +76,7 @@

- name, 'forum') . ' › '; ?> + name, 'community/forum') . ' › '; ?> title; ?>