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
Merge "DifferenceEngine: Move MW_DIFF_VERSION to class constant DIFF_VERSION"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialWatchlist.php
diff --git
a/includes/specials/SpecialWatchlist.php
b/includes/specials/SpecialWatchlist.php
index
15691f2
..
58cde7e
100644
(file)
--- a/
includes/specials/SpecialWatchlist.php
+++ b/
includes/specials/SpecialWatchlist.php
@@
-21,6
+21,8
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A special page that lists last changes made to the wiki,
* limited to user-defined list of titles.
/**
* A special page that lists last changes made to the wiki,
* limited to user-defined list of titles.
@@
-365,7
+367,7
@@
class SpecialWatchlist extends ChangesListSpecialPage {
if ( $this->getConfig()->get( 'RCShowWatchingUsers' )
&& $user->getOption( 'shownumberswatching' )
) {
if ( $this->getConfig()->get( 'RCShowWatchingUsers' )
&& $user->getOption( 'shownumberswatching' )
) {
- $watchedItemStore =
WatchedItemStore::getDefaultInstanc
e();
+ $watchedItemStore =
MediaWikiServices::getInstance()->getWatchedItemStor
e();
}
$s = $list->beginRecentChangesList();
}
$s = $list->beginRecentChangesList();
@@
-646,7
+648,8
@@
class SpecialWatchlist extends ChangesListSpecialPage {
* @return int
*/
protected function countItems() {
* @return int
*/
protected function countItems() {
- $count = WatchedItemStore::getDefaultInstance()->countWatchedItems( $this->getUser() );
+ $store = MediaWikiServices::getInstance()->getWatchedItemStore();
+ $count = $store->countWatchedItems( $this->getUser() );
return floor( $count / 2 );
}
}
return floor( $count / 2 );
}
}