Always use the strict equality flag when using in_array
Change-Id: I8ce7209c03bb054b2a9ad96c7d5897d081b4e27e
This commit is contained in:
@@ -140,12 +140,12 @@ class Hooks implements
|
||||
*/
|
||||
public function onBeforePageDisplay( $out, $skin ): void {
|
||||
$unsupportedSkins = [ 'minerva', 'apioutput' ];
|
||||
if ( in_array( $skin->getSkinName(), $unsupportedSkins ) ) {
|
||||
if ( in_array( $skin->getSkinName(), $unsupportedSkins, true ) ) {
|
||||
return;
|
||||
}
|
||||
// Soft dependency to Wikibase client. Don't enable CLL if links are managed manually.
|
||||
$excludedLinks = $out->getProperty( 'noexternallanglinks' );
|
||||
$override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks );
|
||||
$override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks, true );
|
||||
$isCompactLinksEnabled = $this->isCompactLinksEnabled( $out->getUser(), $skin );
|
||||
$config = [
|
||||
'wgULSPosition' => $this->config->get( 'ULSPosition' ),
|
||||
|
||||
Reference in New Issue
Block a user