Index: blog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blog.module,v
retrieving revision 1.209
diff -u -r1.209 blog.module
--- blog.module 16 Jan 2005 18:44:48 -0000 1.209
+++ blog.module 22 Jan 2005 21:23:56 -0000
@@ -162,9 +162,9 @@
$output .= node_view(node_load(array('nid' => $node->nid)), 1);
}
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
- $output .= theme('xml_icon', url("blog/feed/$account->uid"));
+ $output .= theme('xml_icon', url("blog/$account->uid/feed"));
- drupal_set_html_head('uid") .'" />');
+ drupal_set_html_head('uid/feed") .'" />');
print theme('page', $output);
}
else {
Index: legacy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/legacy.module,v
retrieving revision 1.3
diff -u -r1.3 legacy.module
--- legacy.module 17 Sep 2004 18:08:28 -0000 1.3
+++ legacy.module 22 Jan 2005 21:43:47 -0000
@@ -34,6 +34,11 @@
$items[] = array('path' => 'taxonomy/feed', 'title' => t('taxonomy'),
'callback' => 'legacy_taxonomy_feed',
'access' => TRUE, 'type' => MENU_CALLBACK);
+
+ // Map "blog/feed/52" to "blog/52/feed".
+ $items[] = array('path' => 'blog/feed', 'title' => t('blog'),
+ 'callback' => 'legacy_blog_feed',
+ 'access' => TRUE, 'type' => MENU_CALLBACK);
}
else {
// Map "node/view/52" to "node/52".
@@ -76,6 +81,17 @@
$str_tids = str_replace(',', '+', $str_tids);
}
drupal_goto('taxonomy/term/'. $str_tids .'/0/feed');
+}
+
+/**
+ * Menu callback; redirects users to new blog feed paths.
+ */
+function legacy_blog_feed($str_uid = '') {
+ // if URL is of form blog/feed/52 redirect
+ // if URL is of form blog/feed no need to redirect
+ if (is_numeric($str_uid)) {
+ drupal_goto('blog/'. $str_uid .'/feed');
+ }
}
/**