diff --git a/includes/Hooks.php b/includes/Hooks.php index 030e86e..a41b764 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -38,14 +38,14 @@ class Hooks { return; } - if ( $parsed[ 'scheme' ] !== 'http' && $parsed[ 'scheme' ] !== '' ) { + if ( $parsed['scheme'] !== 'http' && $parsed['scheme'] !== '' ) { // We only want http:// and proto-rel return; } - if ( HSTSPreloadLookup::getInstance()->isPreloaded( $parsed[ 'host' ] ) ) { - $parsed[ 'scheme' ] = 'https'; - $parsed[ 'delimiter' ] = '://'; + if ( HSTSPreloadLookup::getInstance()->isPreloaded( $parsed['host'] ) ) { + $parsed['scheme'] = 'https'; + $parsed['delimiter'] = '://'; $url = wfAssembleUrl( $parsed ); } }