X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialVersion.php;h=01a12c0f84b1d7c7a3e7ba0b175434025f6c720c;hb=e3fc43b9c58de56b540bdd130997c5e43a8c1810;hp=0ff5fc913de1fe4b92e5dc9fe8bbb2df2195773b;hpb=43bd63fde806510119ce2739f66c0bad376807ca;p=lhc%2Fweb%2Fwiklou.git 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' ),