Skip to content

Commit

Permalink
refactor: use array argument for addModules (#21)
Browse files Browse the repository at this point in the history
Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38.
  • Loading branch information
alistair3149 authored May 12, 2022
1 parent 3f9c341 commit 29c85ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/EmbedVideoHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ public function onBeforePageDisplay( $out, $skin ): void {
$config = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'EmbedVideo' );

if ( $config->get( 'EmbedVideoUseEmbedStyleForLocalVideos' ) === true ) {
$out->addModules( 'ext.embedVideo' );
$out->addModuleStyles( 'ext.embedVideo.styles' );
$out->addModules( 'ext.embedVideo.overlay' );
$out->addModules( [ 'ext.embedVideo' ] );
$out->addModuleStyles( [ 'ext.embedVideo.styles' ] );
$out->addModules( [ 'ext.embedVideo.overlay' ] );
}
}

Expand Down

0 comments on commit 29c85ed

Please sign in to comment.