From c51607f3b8f2270365341c51d3ca9143810f213f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 27 Apr 2009 13:37:35 +0000 Subject: [PATCH] * Do the query before requesting navigation --- includes/specials/SpecialCategories.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index c6e73f2b2a..eefe8e1665 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -13,6 +13,7 @@ function wfSpecialCategories( $par=null ) { $from = $par; } $cap = new CategoryPager( $from ); + $cap->doQuery(); $wgOut->addHTML( XML::openElement( 'div', array('class' => 'mw-spcontent') ) . wfMsgExt( 'categoriespagetext', array( 'parse' ) ) . @@ -74,9 +75,6 @@ class CategoryPager extends AlphabeticPager { /* Override getBody to apply LinksBatch on resultset before actually outputting anything. */ public function getBody() { - if (!$this->mQueryDone) { - $this->doQuery(); - } $batch = new LinkBatch; $this->mResult->rewind(); -- 2.20.1