X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=479ce8c32a9ca5411b81b3470cd140c78662f133;hb=ee734d0d3c7533bd9a690dbd71f5151da55c32ad;hp=86df4b866791bd7f884bd21f0c099bebba201408;hpb=df7ab011ac26c0ed240fac6af78032497f30b588;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 86df4b8667..479ce8c32a 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -68,17 +68,18 @@ if ( !empty( $wgActionPaths ) && !isset( $wgActionPaths['view'] ) ) { $wgActionPaths['view'] = $wgArticlePath; } +if ( $wgResourceBasePath === null ) { + $wgResourceBasePath = $wgScriptPath; +} if ( $wgStylePath === false ) { - $wgStylePath = "$wgScriptPath/skins"; + $wgStylePath = "$wgResourceBasePath/skins"; } if ( $wgLocalStylePath === false ) { + // Avoid wgResourceBasePath here since that may point to a different domain (e.g. CDN) $wgLocalStylePath = "$wgScriptPath/skins"; } if ( $wgExtensionAssetsPath === false ) { - $wgExtensionAssetsPath = "$wgScriptPath/extensions"; -} -if ( $wgResourceBasePath === null ) { - $wgResourceBasePath = $wgScriptPath; + $wgExtensionAssetsPath = "$wgResourceBasePath/extensions"; } if ( $wgLogo === false ) { @@ -521,11 +522,11 @@ unset( $serverParts ); // Set defaults for configuration variables // that are derived from the server name by default -if ( $wgEmergencyContact === false ) { +// Note: $wgEmergencyContact and $wgPasswordSender may be false or empty string (T104142) +if ( !$wgEmergencyContact ) { $wgEmergencyContact = 'wikiadmin@' . $wgServerName; } - -if ( $wgPasswordSender === false ) { +if ( !$wgPasswordSender ) { $wgPasswordSender = 'apache@' . $wgServerName; }