mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Check for empty strings in markasread query param"
This commit is contained in:
commit
9ccdaa7be0
|
@ -857,7 +857,7 @@ class EchoHooks implements RecentChange_saveHook {
|
|||
}
|
||||
|
||||
// Attempt to mark as read the event IDs in the ?markasread= parameter, if present
|
||||
$markAsReadIds = explode( '|', $request->getText( 'markasread' ) );
|
||||
$markAsReadIds = array_filter( explode( '|', $request->getText( 'markasread' ) ) );
|
||||
$markAsReadWiki = $request->getText( 'markasreadwiki', wfWikiID() );
|
||||
$markAsReadLocal = !$wgEchoCrossWikiNotifications || $markAsReadWiki === wfWikiID();
|
||||
if ( $markAsReadIds ) {
|
||||
|
|
Loading…
Reference in a new issue