(bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors.
[lhc/web/wiklou.git] / includes / SpecialRecentchangeslinked.php
index bea3878..9bf957f 100644 (file)
@@ -36,7 +36,6 @@ function wfSpecialRecentchangeslinked( $par = NULL ) {
        $id = $nt->getArticleId();
 
        $wgOut->setPageTitle( wfMsg( 'recentchangeslinked-title', $nt->getPrefixedText() ) );
-       $wgOut->setSubtitle( htmlspecialchars( wfMsg( 'rclsub', $nt->getPrefixedText() ) ) );
        $wgOut->setSyndicated();
        $wgOut->setFeedAppendQuery( "target=" . urlencode( $target ) );
 
@@ -77,7 +76,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) {
 
        // If target is a Category, use categorylinks and invert from and to
        if( $nt->getNamespace() == NS_CATEGORY ) {
-               $catkey = $dbr->addQuotes( $nt->getDBKey() );
+               $catkey = $dbr->addQuotes( $nt->getDBkey() );
                $sql = "SELECT /* wfSpecialRecentchangeslinked */
                                rc_id,
                                rc_cur_id,
@@ -183,14 +182,8 @@ $GROUPBY
                        htmlspecialchars( wfMsgForContent('recentchangeslinked') ), $wgTitle->getFullUrl() );
                
                require_once( "SpecialRecentchanges.php" );
-               rcDoOutputFeed( $rchanges, $feed );
-               
                $wgOut->disable();
-               $feed->outHeader();
-               foreach( $feedItems as &$item ) {
-                       $feed->outItem( $item );
-               }
-               $feed->outFooter();
+               rcDoOutputFeed( $rchanges, $feed );
        }
 }