Include wgScriptExtension in exported JS vars
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 5 Oct 2009 15:34:41 +0000 (15:34 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 5 Oct 2009 15:34:41 +0000 (15:34 +0000)
includes/Skin.php

index ebdc78a..0e40140 100644 (file)
@@ -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,