summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-12-22 22:58:12 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-12-22 22:58:12 +0000
commitb43fa0f9dad586617b6577f72523e78a0b99ea3d (patch)
treecb3c34b7631d8e795328feb7cda0256cf0c964ac /modules/taxonomy
parent3783e6304c0984d32453d02a4690e8e70080c857 (diff)
downloadbrdo-b43fa0f9dad586617b6577f72523e78a0b99ea3d.tar.gz
brdo-b43fa0f9dad586617b6577f72523e78a0b99ea3d.tar.bz2
- #41744: global urlencode() for menu paths
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 97a069488..10a593e3d 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1044,9 +1044,6 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_not_found();
}
- // Needed for '+' to show up in RSS discovery URLs
- $rss_tids = urlencode($str_tids);
-
if ($tids) {
$result = db_query(db_rewrite_sql('SELECT t.tid, t.name FROM {term_data} t WHERE t.tid IN (%s)', 't', 'tid'), implode(',', $tids));
$tids = array(); // we rebuild the $tids-array so it only contains terms the user has access to.
@@ -1074,10 +1071,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => 'RSS - '. $title,
- 'href' => url('taxonomy/term/'. $rss_tids .'/'. $depth .'/feed')));
+ 'href' => url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed')));
$output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $operator, $depth, TRUE));
- $output .= theme('xml_icon', url("taxonomy/term/$rss_tids/$depth/feed"));
+ $output .= theme('xml_icon', url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'));
return $output;
break;