summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-23 05:55:38 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-23 05:55:38 +0000
commita58d877108f6b7ff6712c6261815c6092c7f6949 (patch)
tree6c76f23e2bc4caf442d7643f3fe0fd189c20f3f4 /modules/node/node.module
parent32e22f1f9a69618ba94e2015cf4f9d5c8ebb80e1 (diff)
downloadbrdo-a58d877108f6b7ff6712c6261815c6092c7f6949.tar.gz
brdo-a58d877108f6b7ff6712c6261815c6092c7f6949.tar.bz2
#66569 by m3avrck. Put all the feed icons in the same place.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index b8ed3c4e2..237354ab8 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2256,10 +2256,12 @@ function node_page_default() {
$result = pager_query(db_rewrite_sql('SELECT n.nid, n.sticky, n.created FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC'), variable_get('default_nodes_main', 10));
if (db_num_rows($result)) {
+ $feed_url = url('rss.xml', NULL, NULL, TRUE);
+ drupal_add_feed($feed_url);
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => t('RSS'),
- 'href' => url('rss.xml', NULL, NULL, TRUE)));
+ 'href' => $feed_url));
$output = '';
while ($node = db_fetch_object($result)) {