Removed call to OutputPage::setSyndicated( true ) just before calling OutputPage...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 3 Oct 2011 14:21:20 +0000 (14:21 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 3 Oct 2011 14:21:20 +0000 (14:21 +0000)
includes/HistoryPage.php
includes/specials/SpecialNewpages.php

index 8ed41b2..11315ac 100644 (file)
@@ -88,7 +88,6 @@ class HistoryPage extends ContextSource {
                $out->setArticleFlag( false );
                $out->setArticleRelated( true );
                $out->setRobotPolicy( 'noindex,nofollow' );
-               $out->setSyndicated( true );
                $out->setFeedAppendQuery( 'action=history' );
                $out->addModules( array( 'mediawiki.legacy.history', 'mediawiki.action.history' ) );
 
index 5d4a245..0196980 100644 (file)
@@ -139,11 +139,12 @@ class SpecialNewpages extends IncludableSpecialPage {
                        // Settings
                        $this->form();
 
-                       $this->setSyndicated();
                        $feedType = $this->opts->getValue( 'feed' );
                        if( $feedType ) {
                                return $this->feed( $feedType );
                        }
+
+                       $out->setFeedAppendQuery( wfArrayToCGI( $this->opts->getAllValues() ) );
                }
 
                $pager = new NewPagesPager( $this, $this->opts );
@@ -276,12 +277,6 @@ class SpecialNewpages extends IncludableSpecialPage {
                $this->getOutput()->addHTML( $form );
        }
 
-       protected function setSyndicated() {
-               $out = $this->getOutput();
-               $out->setSyndicated( true );
-               $out->setFeedAppendQuery( wfArrayToCGI( $this->opts->getAllValues() ) );
-       }
-
        /**
         * Format a row, providing the timestamp, links to the page/history, size, user links, and a comment
         *