Fix weird spacing

I'm not sure why I did this

Change-Id: I86302d8c1e6f619f9493c1779714cb905a0b526b
This commit is contained in:
Kunal Mehta 2018-08-01 21:40:16 -07:00
parent f0ed5222ff
commit 6ac715971e

View file

@ -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 );
}
}