aboutsummaryrefslogtreecommitdiffstats
path: root/includes/watcheditem
diff options
context:
space:
mode:
authorDannyS712 <dannys712.wiki@gmail.com>2021-04-23 15:26:55 +0000
committerDannyS712 <dannys712.wiki@gmail.com>2021-04-23 15:27:56 +0000
commit1acd9531d3ec5e82b7bd0fe388049c25f181fe17 (patch)
tree57d5ad8f94e14df7f02f0f20ddd433451b6ae83a /includes/watcheditem
parent89b00fcfbe966092f405f0cc939eb6f052cf2a2b (diff)
downloadmediawikicore-1acd9531d3ec5e82b7bd0fe388049c25f181fe17.tar.gz
mediawikicore-1acd9531d3ec5e82b7bd0fe388049c25f181fe17.zip
Fix NoWriteWatchedItemStore::countWatchersMultiple
Should call the same ::countWatchersMutiple on the actual store, not ::countVisitingWatchersMultiple Has been broken since NoWriteWatchedItemStore was first introduced, see 1ff58fc74663aff7f0b784315b959173e2a43dd9 Change-Id: I20ab9a130f5bfe8b888ad08ea5852f13a03184f8
Diffstat (limited to 'includes/watcheditem')
-rw-r--r--includes/watcheditem/NoWriteWatchedItemStore.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/watcheditem/NoWriteWatchedItemStore.php b/includes/watcheditem/NoWriteWatchedItemStore.php
index 3e6280a004e7..b59a28d351d8 100644
--- a/includes/watcheditem/NoWriteWatchedItemStore.php
+++ b/includes/watcheditem/NoWriteWatchedItemStore.php
@@ -76,9 +76,9 @@ class NoWriteWatchedItemStore implements WatchedItemStoreInterface {
* of watchers was below the minimumWatchers option if passed.
*/
public function countWatchersMultiple( array $targets, array $options = [] ) {
- return $this->actualStore->countVisitingWatchersMultiple(
+ return $this->actualStore->countWatchersMultiple(
$targets,
- $options['minimumWatchers'] ?? null
+ $options
);
}