From: Andrew Garrett Date: Mon, 5 Oct 2009 15:34:41 +0000 (+0000) Subject: Include wgScriptExtension in exported JS vars X-Git-Tag: 1.31.0-rc.0~39381 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=c4aaec61240bc702a732005b1ad5cb5852b3b2bb;p=lhc%2Fweb%2Fwiklou.git Include wgScriptExtension in exported JS vars --- diff --git a/includes/Skin.php b/includes/Skin.php index ebdc78a0dc..0e40140ab7 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -355,7 +355,7 @@ class Skin extends Linker { # Weird back-compat stuff. $skinName = $skinName['skinname']; } - global $wgScript, $wgTitle, $wgStylePath, $wgUser; + global $wgScript, $wgTitle, $wgStylePath, $wgUser, $wgScriptExtension; global $wgArticlePath, $wgScriptPath, $wgServer, $wgContLang, $wgLang; global $wgCanonicalNamespaceNames, $wgOut, $wgArticle; global $wgBreakFrames, $wgRequest, $wgVariantArticlePath, $wgActionPaths; @@ -385,6 +385,7 @@ class Skin extends Linker { 'stylepath' => $wgStylePath, 'wgArticlePath' => $wgArticlePath, 'wgScriptPath' => $wgScriptPath, + 'wgScriptExtension' => $wgScriptExtension, 'wgScript' => $wgScript, 'wgVariantArticlePath' => $wgVariantArticlePath, 'wgActionPaths' => (object)$wgActionPaths,