Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion includes/SpecialUsersWatchList.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* @ingroup SpecialPage
*/

use MediaWiki\MediaWikiServices;

/**
* A special page that lists last changes made to the wiki,
* limited to user-defined list of titles.
Expand Down Expand Up @@ -69,7 +71,7 @@ function execute( $subpage ) {
&& $request->getVal( 'reset' )
&& $request->wasPosted()
) {
$user->clearAllNotifications();
MediaWikiServices::getInstance()->getWatchlistNotificationManager()->clearAllUserNotifications( $user );
$output->redirect( $this->getPageTitle()->getFullURL( $opts->getChangedValues() ) );

return;
Expand Down