From: Timo Tijhof Date: Thu, 25 Sep 2014 01:11:39 +0000 (-0700) Subject: resourceloader: Clean up $localBasePath variable assignment X-Git-Tag: 1.31.0-rc.0~13829 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=eaac07ac27542f5304592a21fab42ed379ed40c9;p=lhc%2Fweb%2Fwiklou.git resourceloader: Clean up $localBasePath variable assignment No need to set a variable to value of itself. Also consistent with the way $remoteBasePath is set, already. Change-Id: I9b71322592a5ca2d85927fcf6732096f758847e9 --- diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index dc8b14a23e..a77e8f7193 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -304,7 +304,9 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { // The different ways these checks are done, and their ordering, look very silly, // but were preserved for backwards-compatibility just in case. Tread lightly. - $localBasePath = $localBasePath === null ? $IP : $localBasePath; + if ( $localBasePath === null ) { + $localBasePath = $IP; + } if ( $remoteBasePath === null ) { $remoteBasePath = $wgResourceBasePath; }