mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Hooks::onRecentChangeSave: Don't pass null to explode(), avoiding PHP 8.1 deprecation
Re-done from3022b0e4e
on the dev branch. Change-Id: Id318ea49113afd02f1e74cf0c7b70ac4bd2ade36 (cherry picked from commit0bc3b98e5b
)
This commit is contained in:
parent
0bcc65e32e
commit
ce2fbebf31
|
@ -635,7 +635,7 @@ class VisualEditorHooks {
|
|||
$rc->addTags( 'visualeditor-switched' );
|
||||
}
|
||||
|
||||
$tags = explode( ',', $request->getVal( 'vetags' ) );
|
||||
$tags = explode( ',', $request->getVal( 'vetags' ) ?? '' );
|
||||
$tags = array_values( array_intersect( $tags, static::$tags ) );
|
||||
if ( $tags ) {
|
||||
$rc->addTags( $tags );
|
||||
|
|
Loading…
Reference in a new issue