more cssification of diff rendering, some " -> ' in diff engine
[lhc/web/wiklou.git] / includes / SpecialRecentchanges.php
index 69d32f9..4470c76 100644 (file)
@@ -1,22 +1,16 @@
 <?php
 
-include_once( "Feed.php" );
+require_once( "Feed.php" );
 
 function wfSpecialRecentchanges( $par )
 {
        global $wgUser, $wgOut, $wgLang, $wgTitle, $wgMemc, $wgDBname;
        global $wgRequest, $wgSitename, $wgLanguageCode;
+       global $wgFeedClasses;
        $fname = "wfSpecialRecentchanges";
 
        # Get query parameters
        $feedFormat = $wgRequest->getVal( "feed" );
-       
-       // imported from Feed.php
-       $wgFeedClasses = array (
-               "rss" => "RSSFeed",
-               "atom" => "AtomFeed",
-               );
-       // end of import
 
        $defaultDays = $wgUser->getOption( 'rcdays' );
        if ( !$defaultDays ) {
@@ -117,11 +111,11 @@ function wfSpecialRecentchanges( $par )
        } else {
                $note = wfMsg( "rcnote", $wgLang->formatNum( $limit ), $wgLang->formatNum( $days ) );
        }
-       $wgOut->addHTML( "\n<hr/>\n{$note}\n<br/>" );
+       $wgOut->addHTML( "\n<hr />\n{$note}\n<br />" );
 
        $note = rcDayLimitLinks( $days, $limit, "Recentchanges", $hideparams, false, $minorLink, $botLink, $liuLink );
 
-       $note .= "<br/>\n" . wfMsg( "rclistfrom",
+       $note .= "<br />\n" . wfMsg( "rclistfrom",
          $sk->makeKnownLink( $wgLang->specialPage( "Recentchanges" ),
          $wgLang->timeanddate( $now, true ), "{$hideparams}&from=$now" ) );
 
@@ -135,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 );
                }