From 1acd9531d3ec5e82b7bd0fe388049c25f181fe17 Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Fri, 23 Apr 2021 15:26:55 +0000 Subject: 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 --- includes/watcheditem/NoWriteWatchedItemStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/watcheditem') 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 ); } -- cgit v1.2.3