[Core JS] mediawiki.legacy.protect should be loaded from the top
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 22 Jan 2012 02:51:06 +0000 (02:51 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 22 Jan 2012 02:51:06 +0000 (02:51 +0000)
* The global object created by this legacy module is references from inline on-event attributes as well as from inline <script>'s by ProtectionForm.php
* Needs to be loaded before any of that happens
* Fixes bug 33660

resources/Resources.php

index 5db1404..1830ba9 100644 (file)
@@ -16,7 +16,7 @@ return array(
        /* Skins */
 
        'skins.chick' => array(
-               'styles' => array( 'chick/main.css' => array( 'media' => 'screen,handheld' ) ),
+               'styles' => array( 'chick/main.css' => array( 'media' => 'screen, handheld' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
@@ -862,6 +862,7 @@ return array(
                        'mediawiki.legacy.wikibits',
                        'jquery.byteLimit',
                ),
+               'position' => 'top',
        ),
        'mediawiki.legacy.shared' => array(
                'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),