dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update more docs and type hints to use IDatabase
[lhc/web/wiklou.git]
/
includes
/
pager
/
IndexPager.php
diff --git
a/includes/pager/IndexPager.php
b/includes/pager/IndexPager.php
index
ce6dc50
..
f0e7f3e
100644
(file)
--- a/
includes/pager/IndexPager.php
+++ b/
includes/pager/IndexPager.php
@@
-182,7
+182,7
@@
abstract class IndexPager extends ContextSource implements Pager {
/**
* Get the Database object in use
*
/**
* Get the Database object in use
*
- * @return
DatabaseB
ase
+ * @return
IDatab
ase
*/
public function getDatabase() {
return $this->mDb;
*/
public function getDatabase() {
return $this->mDb;
@@
-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 ) . ')';
public function doQuery() {
# Use the child class name for profiling
$fname = __METHOD__ . ' (' . get_class( $this ) . ')';
-
wf
ProfileIn( $fname );
+
$section = Profiler::instance()->scoped
ProfileIn( $fname );
// @todo This should probably compare to DIR_DESCENDING and DIR_ASCENDING constants
$descending = ( $this->mIsBackwards == $this->mDefaultDirection );
// @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
$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";
}
$attrs['class'] = "mw-{$type}link";
}
-
return Linker::linkKnown(
$this->getTitle(),
$text,
return Linker::linkKnown(
$this->getTitle(),
$text,