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
Change ResultWrapper to IResultWrapper in pagers and special pages
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialWatchlist.php
diff --git
a/includes/specials/SpecialWatchlist.php
b/includes/specials/SpecialWatchlist.php
index
e8e828d
..
3fe6c1e
100644
(file)
--- a/
includes/specials/SpecialWatchlist.php
+++ b/
includes/specials/SpecialWatchlist.php
@@
-22,7
+22,7
@@
*/
use MediaWiki\MediaWikiServices;
*/
use MediaWiki\MediaWikiServices;
-use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\
I
ResultWrapper;
use Wikimedia\Rdbms\IDatabase;
/**
use Wikimedia\Rdbms\IDatabase;
/**
@@
-117,11
+117,6
@@
class SpecialWatchlist extends ChangesListSpecialPage {
);
}
);
}
- public function isStructuredFilterUiEnabledByDefault() {
- return $this->getConfig()->get( 'StructuredChangeFiltersOnWatchlist' ) &&
- $this->getUser()->getDefaultOption( 'rcenhancedfilters' );
- }
-
/**
* Return an array of subpages that this special page will accept.
*
/**
* Return an array of subpages that this special page will accept.
*
@@
-482,7
+477,7
@@
class SpecialWatchlist extends ChangesListSpecialPage {
/**
* Build and output the actual changes list.
*
/**
* Build and output the actual changes list.
*
- * @param ResultWrapper $rows Database rows
+ * @param
I
ResultWrapper $rows Database rows
* @param FormOptions $opts
*/
public function outputChangesList( $rows, $opts ) {
* @param FormOptions $opts
*/
public function outputChangesList( $rows, $opts ) {
@@
-491,7
+486,7
@@
class SpecialWatchlist extends ChangesListSpecialPage {
$output = $this->getOutput();
# Show a message about replica DB lag, if applicable
$output = $this->getOutput();
# Show a message about replica DB lag, if applicable
- $lag =
wfGetLB
()->safeGetLag( $dbr );
+ $lag =
MediaWikiServices::getInstance()->getDBLoadBalancer
()->safeGetLag( $dbr );
if ( $lag > 0 ) {
$output->showLagWarning( $lag );
}
if ( $lag > 0 ) {
$output->showLagWarning( $lag );
}