From: Timo Tijhof Date: Mon, 26 Jan 2015 23:07:49 +0000 (-0800) Subject: CSSMin: Optimise isLocalUrl by moving fast comparison forward X-Git-Tag: 1.31.0-rc.0~12559 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=a3725a66afaa823221a2c27a34343d2e1127aa67;p=lhc%2Fweb%2Fwiklou.git CSSMin: Optimise isLocalUrl by moving fast comparison forward Change-Id: I668e248bd51fb75dfeeef3b74973f517a188c7ba --- diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index bea6cedb82..ffe26a96c1 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -359,7 +359,7 @@ class CSSMin { * @return bool */ public static function isLocalUrl( $maybeUrl ) { - if ( !self::isRemoteUrl( $maybeUrl ) && $maybeUrl !== '' && $maybeUrl[0] === '/' ) { + if ( $maybeUrl !== '' && $maybeUrl[0] === '/' && !self::isRemoteUrl( $maybeUrl ) ) { return true; } return false;