From 3bc1707722a9e613341d811a29ee76c8e1203810 Mon Sep 17 00:00:00 2001 From: Danny B Date: Thu, 5 Jun 2008 14:20:59 +0000 Subject: [PATCH] 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 --- includes/SpecialNewpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.20.1