Fix r78970 per CR: params were the wrong way around
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 31 Dec 2010 16:31:41 +0000 (16:31 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 31 Dec 2010 16:31:41 +0000 (16:31 +0000)
includes/specials/SpecialLinkSearch.php

index a47301a..f2fe333 100644 (file)
@@ -177,7 +177,7 @@ class LinkSearchPage extends QueryPage {
        /**
         * Override to check query validity.
         */
-       function doQuery( $offset, $limit = false ) {
+       function doQuery( $limit, $offset = false ) {
                global $wgOut;
                list( $this->mMungedQuery,  ) = LinkSearchPage::mungeQuery( $this->mQuery, $this->mProt );
                if( $this->mMungedQuery === false ) {
@@ -186,7 +186,7 @@ class LinkSearchPage extends QueryPage {
                        // For debugging
                        // Generates invalid xhtml with patterns that contain --
                        //$wgOut->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
-                       parent::doQuery( $offset, $limit );
+                       parent::doQuery( $limit, $offset );
                }
        }