Fix use of the <comments> field in RSS feed. It's not a textual comment, but rather...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 29 Apr 2004 01:14:32 +0000 (01:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 29 Apr 2004 01:14:32 +0000 (01:14 +0000)
includes/QueryPage.php
includes/SpecialRecentchanges.php

index b24826f..da0aaa0 100644 (file)
@@ -142,12 +142,9 @@ class QueryPage {
                        }
                        
                        $comments = "";
-                       if( isset( $row->cur_comment ) ) {
-                               $comments = $row->cur_comment;
-                       } elseif( isset( $row->old_comment ) ) {
-                               $comments = $row->old_comment;
-                       } elseif( isset( $row->rc_cur_comment ) ) {
-                               $comments = $row->rc_cur_comment;
+                       if( $title ) {
+                               $talkpage = $title->getTalkPage();
+                               $comments = $talkpage->getFullURL();
                        }
                        
                        return new FeedItem(
index 79cfe7b..9581b8c 100644 (file)
@@ -129,13 +129,14 @@ function wfSpecialRecentchanges( $par )
                $feed->outHeader();
                foreach( $rows as $obj ) {
                        $title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title );
+                       $talkpage = $title->getTalkPage();
                        $item = new FeedItem(
                                $title->getPrefixedText(),
                                htmlspecialchars( $obj->rc_comment ),
                                $title->getFullURL(),
                                $obj->rc_timestamp,
                                $obj->rc_user_text,
-                               htmlspecialchars( $obj->rc_comment )
+                               $talkpage->getFullURL()
                                );
                        $feed->outItem( $item );
                }