From: Danny B Date: Thu, 5 Jun 2008 14:20:59 +0000 (+0000) Subject: repairing invalid RSS feed in Special:NewPages X-Git-Tag: 1.31.0-rc.0~47151 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=3bc1707722a9e613341d811a29ee76c8e1203810;p=lhc%2Fweb%2Fwiklou.git repairing invalid RSS feed in Special:NewPages field in RSS contains URL, not plain text - using talk page URL here per Special:RecentChanges feed RSS 2.0 spec: http://cyber.law.harvard.edu/rss/rss.html#ltcommentsgtSubelementOfLtitemgt --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index a9f58b22a7..3201a9aa60 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -316,7 +316,7 @@ class NewPagesForm { $title = Title::MakeTitle( intval( $row->rc_namespace ), $row->rc_title ); if( $title ) { $date = $row->rc_timestamp; - $comments = $this->stripComment( $row->rc_comment ); + $comments = $title->getTalkPage()->getFullURL(); return new FeedItem( $title->getPrefixedText(),