From f17cf7ef0eff66f5286253eebe47d675769db7da Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 22 Feb 2011 23:40:48 +0000 Subject: [PATCH] Followup r82641, set default for 2nd param Fix caller in SpecialLinkSearch.php --- includes/QueryPage.php | 2 +- includes/specials/SpecialLinkSearch.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 3d5ad4e3f1..2dc9ac6394 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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 { diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index b1b0b22afb..b831b96676 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -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\n" ); - parent::doQuery( $limit, $offset ); + parent::doQuery( $offset, $limit ); } } -- 2.20.1