resourceloader: Clean up $localBasePath variable assignment
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 25 Sep 2014 01:11:39 +0000 (18:11 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 25 Sep 2014 01:32:45 +0000 (01:32 +0000)
No need to set a variable to value of itself. Also consistent
with the way $remoteBasePath is set, already.

Change-Id: I9b71322592a5ca2d85927fcf6732096f758847e9

includes/resourceloader/ResourceLoaderFileModule.php

index dc8b14a..a77e8f7 100644 (file)
@@ -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;
                }