From: Niklas Laxström Date: Mon, 27 Apr 2009 13:37:35 +0000 (+0000) Subject: * Do the query before requesting navigation X-Git-Tag: 1.31.0-rc.0~41971 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=c51607f3b8f2270365341c51d3ca9143810f213f;p=lhc%2Fweb%2Fwiklou.git * Do the query before requesting navigation --- 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();