X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderOOUIFileModule.php;h=7d39a58e9c249c0557828100691fd0b2415f78e0;hb=45cf5258871867a159c264983e8dc60ed083d9fe;hp=e97e074201bcc92e9f7af97829f056970f68eb18;hpb=89539f2aa1b158fdcc703ad053e2580cb97a6385;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderOOUIFileModule.php b/includes/resourceloader/ResourceLoaderOOUIFileModule.php index e97e074201..7d39a58e9c 100644 --- a/includes/resourceloader/ResourceLoaderOOUIFileModule.php +++ b/includes/resourceloader/ResourceLoaderOOUIFileModule.php @@ -28,15 +28,15 @@ class ResourceLoaderOOUIFileModule extends ResourceLoaderFileModule { use ResourceLoaderOOUIModule; public function __construct( $options = [] ) { - if ( isset( $options[ 'themeScripts' ] ) ) { - $skinScripts = $this->getSkinSpecific( $options[ 'themeScripts' ], 'scripts' ); + if ( isset( $options['themeScripts'] ) ) { + $skinScripts = $this->getSkinSpecific( $options['themeScripts'], 'scripts' ); if ( !isset( $options['skinScripts'] ) ) { $options['skinScripts'] = []; } $this->extendSkinSpecific( $options['skinScripts'], $skinScripts ); } - if ( isset( $options[ 'themeStyles' ] ) ) { - $skinStyles = $this->getSkinSpecific( $options[ 'themeStyles' ], 'styles' ); + if ( isset( $options['themeStyles'] ) ) { + $skinStyles = $this->getSkinSpecific( $options['themeStyles'], 'styles' ); if ( !isset( $options['skinStyles'] ) ) { $options['skinStyles'] = []; }