Follow-up to r56746: prevent notices by adding global $wgJsMimeType
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Tue, 22 Sep 2009 10:42:20 +0000 (10:42 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Tue, 22 Sep 2009 10:42:20 +0000 (10:42 +0000)
includes/OutputPage.php

index 95c49a9..204163a 100644 (file)
@@ -1787,7 +1787,7 @@ class OutputPage {
         * also adds userjs to the end if enabled:
        */
        function getHeadScripts() {
-               global $wgUser;
+               global $wgUser, $wgJsMimeType;
                $sk = $wgUser->getSkin();
 
                $vars = Skin::makeGlobalVariablesScript( $sk->getSkinName() );