dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decb853
)
ResourceLoaderFileModule::extractBasePaths: Simplify if condition
author
Kunal Mehta
<legoktm@gmail.com>
Thu, 7 Aug 2014 10:27:36 +0000
(11:27 +0100)
committer
Kunal Mehta
<legoktm@gmail.com>
Thu, 7 Aug 2014 10:27:36 +0000
(11:27 +0100)
Change-Id: I69f090595629dabefaa0c6ddaa9a793a2f86ecfd
includes/resourceloader/ResourceLoaderFileModule.php
patch
|
blob
|
history
diff --git
a/includes/resourceloader/ResourceLoaderFileModule.php
b/includes/resourceloader/ResourceLoaderFileModule.php
index
c3a36e4
..
03a9829
100644
(file)
--- 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;
}