Skip to:
Content

bbPress.org

Changeset 128


Ignore:
Timestamp:
06/06/2005 05:31:31 AM (21 years ago)
Author:
mdawaffe
Message:

Fix topic feed urls. Fixes #74

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/template-functions.php

    r127 r128  
    182182
    183183    if ( bb_get_option('mod_rewrite') )
    184         $link = get_topic_link() . '/rss/';
     184        $link = bb_get_option('uri') . "/rss/topic/$topic->topic_id";
    185185    else
    186186        $link = bb_get_option('uri') . "rss.php?topic=$topic->topic_id";
  • trunk/rss.php

    r92 r128  
    33
    44$topic_id = (int) $_GET['topic'];
     5
     6if ( !$topic_id )
     7    if ( 'topic' == get_path() )
     8        $topic_id = get_path(2);
    59
    610if ( $topic_id ) {
Note: See TracChangeset for help on using the changeset viewer.