From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/pager/IndexPager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'includes/pager') diff --git a/includes/pager/IndexPager.php b/includes/pager/IndexPager.php index ce6dc50c..7a5952f1 100644 --- a/includes/pager/IndexPager.php +++ b/includes/pager/IndexPager.php @@ -196,7 +196,7 @@ abstract class IndexPager extends ContextSource implements Pager { public function doQuery() { # Use the child class name for profiling $fname = __METHOD__ . ' (' . get_class( $this ) . ')'; - wfProfileIn( $fname ); + $section = Profiler::instance()->scopedProfileIn( $fname ); // @todo This should probably compare to DIR_DESCENDING and DIR_ASCENDING constants $descending = ( $this->mIsBackwards == $this->mDefaultDirection ); @@ -226,8 +226,6 @@ abstract class IndexPager extends ContextSource implements Pager { $this->preprocessResults( $this->mResult ); $this->mResult->rewind(); // Paranoia - - wfProfileOut( $fname ); } /** @@ -478,7 +476,6 @@ abstract class IndexPager extends ContextSource implements Pager { $attrs['class'] = "mw-{$type}link"; } - return Linker::linkKnown( $this->getTitle(), $text, -- cgit v1.2.3-54-g00ecf