diff options
Diffstat (limited to 'includes/pager')
-rw-r--r-- | includes/pager/IndexPager.php | 5 |
1 files changed, 1 insertions, 4 deletions
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, |