From: karun Date: Mon, 17 Dec 2012 22:48:53 +0000 (+1100) Subject: (bug 43184) bogus script path in Special:Version X-Git-Tag: 1.31.0-rc.0~21262^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=d6cf07fac52fc9c4c1ccdd1d6b2f730993031c59;p=lhc%2Fweb%2Fwiklou.git (bug 43184) bogus script path in Special:Version Corrected display of script path change so that when the script path is empty, we default to showing / as the path. Change-Id: I8bb6ff820fa3f8d7c3cdd608f531c0f3c36389ca --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 0ff5fc913d..01a12c0f84 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -775,15 +775,17 @@ class SpecialVersion extends SpecialPage { return $repo->getHeadSHA1(); } + /** * Get the list of entry points and their URLs * @return string Wikitext */ public function getEntryPointInfo() { global $wgArticlePath, $wgScriptPath; + $scriptPath = $wgScriptPath ? $wgScriptPath : "/"; $entryPoints = array( 'version-entrypoints-articlepath' => $wgArticlePath, - 'version-entrypoints-scriptpath' => $wgScriptPath, + 'version-entrypoints-scriptpath' => $scriptPath, 'version-entrypoints-index-php' => wfScript( 'index' ), 'version-entrypoints-api-php' => wfScript( 'api' ), 'version-entrypoints-load-php' => wfScript( 'load' ),