Followup r82641, set default for 2nd param
authorSam Reed <reedy@users.mediawiki.org>
Tue, 22 Feb 2011 23:40:48 +0000 (23:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 22 Feb 2011 23:40:48 +0000 (23:40 +0000)
Fix caller in SpecialLinkSearch.php

includes/QueryPage.php
includes/specials/SpecialLinkSearch.php

index 3d5ad4e..2dc9ac6 100644 (file)
@@ -383,7 +383,7 @@ abstract class QueryPage extends SpecialPage {
        /**
         * Somewhat deprecated, you probably want to be using execute()
         */
-       function doQuery( $offset = false, $limit ) {
+       function doQuery( $offset = false, $limit = false ) {
                if ( $this->isCached() && $this->isCacheable() ) {
                        return $this->fetchFromCache( $limit, $offset );
                } else {
index b1b0b22..b831b96 100644 (file)
@@ -179,7 +179,7 @@ class LinkSearchPage extends QueryPage {
        /**
         * Override to check query validity.
         */
-       function doQuery( $limit, $offset = false ) {
+       function doQuery( $offset = false, $limit = false ) {
                global $wgOut;
                list( $this->mMungedQuery,  ) = LinkSearchPage::mungeQuery( $this->mQuery, $this->mProt );
                if( $this->mMungedQuery === false ) {
@@ -188,7 +188,7 @@ class LinkSearchPage extends QueryPage {
                        // For debugging
                        // Generates invalid xhtml with patterns that contain --
                        //$wgOut->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
-                       parent::doQuery( $limit, $offset );
+                       parent::doQuery( $offset, $limit );
                }
        }