Index: trunk/phase3/includes/specials/SpecialLinkSearch.php |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | /** |
181 | 181 | * Override to check query validity. |
182 | 182 | */ |
183 | | - function doQuery( $limit, $offset = false ) { |
| 183 | + function doQuery( $offset = false, $limit = false ) { |
184 | 184 | global $wgOut; |
185 | 185 | list( $this->mMungedQuery, ) = LinkSearchPage::mungeQuery( $this->mQuery, $this->mProt ); |
186 | 186 | if( $this->mMungedQuery === false ) { |
— | — | @@ -188,7 +188,7 @@ |
189 | 189 | // For debugging |
190 | 190 | // Generates invalid xhtml with patterns that contain -- |
191 | 191 | //$wgOut->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" ); |
192 | | - parent::doQuery( $limit, $offset ); |
| 192 | + parent::doQuery( $offset, $limit ); |
193 | 193 | } |
194 | 194 | } |
195 | 195 | |
Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -383,7 +383,7 @@ |
384 | 384 | /** |
385 | 385 | * Somewhat deprecated, you probably want to be using execute() |
386 | 386 | */ |
387 | | - function doQuery( $offset = false, $limit ) { |
| 387 | + function doQuery( $offset = false, $limit = false ) { |
388 | 388 | if ( $this->isCached() && $this->isCacheable() ) { |
389 | 389 | return $this->fetchFromCache( $limit, $offset ); |
390 | 390 | } else { |