From: Kunal Mehta Date: Thu, 7 Aug 2014 10:27:36 +0000 (+0100) Subject: ResourceLoaderFileModule::extractBasePaths: Simplify if condition X-Git-Tag: 1.31.0-rc.0~14543^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=0d051f6a4f3bdc4e9eb2508a0a180f20b29f54ff;p=lhc%2Fweb%2Fwiklou.git ResourceLoaderFileModule::extractBasePaths: Simplify if condition Change-Id: I69f090595629dabefaa0c6ddaa9a793a2f86ecfd --- diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index c3a36e4ecc..03a9829a31 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -305,9 +305,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { // but were preserved for backwards-compatibility just in case. Tread lightly. $localBasePath = $localBasePath === null ? $IP : $localBasePath; - if ( $remoteBasePath !== null ) { - $remoteBasePath = $remoteBasePath; - } else { + if ( $remoteBasePath === null ) { $remoteBasePath = $wgResourceBasePath === null ? $wgScriptPath : $wgResourceBasePath; }