From: Aaron Schulz Date: Sun, 13 Apr 2008 17:14:54 +0000 (+0000) Subject: seek() does nothing here X-Git-Tag: 1.31.0-rc.0~48368 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=8905b400ca4ac6e3dd8668156357683521469dc1;p=lhc%2Fweb%2Fwiklou.git seek() does nothing here --- diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index d898d4e4ac..445ad62c50 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -242,14 +242,12 @@ class ProtectedPagesPager extends AlphabeticPager { function getStartBody() { wfProfileIn( __METHOD__ ); # Do a link batch query - $this->mResult->seek( 0 ); $lb = new LinkBatch; - - while ( $row = $this->mResult->fetchObject() ) { + while( $row = $this->mResult->fetchObject() ) { $lb->add( $row->page_namespace, $row->page_title ); } - $lb->execute(); + wfProfileOut( __METHOD__ ); return ''; }