From c4aaec61240bc702a732005b1ad5cb5852b3b2bb Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 5 Oct 2009 15:34:41 +0000 Subject: [PATCH] Include wgScriptExtension in exported JS vars --- includes/Skin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.20.1