http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84683

Revision: 84683
Author:   catrope
Date:     2011-03-24 15:41:11 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
1.17wmf1: MFT r82524 to unbreak Gadgets

Modified Paths:
--------------
    branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php

Modified: branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php   2011-03-24 
13:52:13 UTC (rev 84682)
+++ branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php   2011-03-24 
15:41:11 UTC (rev 84683)
@@ -318,11 +318,11 @@
        public function getModule() {
                $pages = array();
                foreach( $this->styles as $style ) {
-                       $pages[$style] = array( 'ns' => NS_MEDIAWIKI, 'type' => 
'style' );
+                       $pages['MediaWiki:' . $style] = array( 'type' => 
'style' );
                }
                if ( $this->supportsResourceLoader() ) {
                        foreach ( $this->scripts as $script ) {
-                               $pages[$script] = array( 'ns' => NS_MEDIAWIKI, 
'type' => 'script' );
+                               $pages['MediaWiki:' . $script] = array( 'type' 
=> 'script' );
                        }
                }
                if ( !count( $pages ) ) {
@@ -470,8 +470,8 @@
         * @param $pages Array: Associative array of pages in 
ResourceLoaderWikiModule-compatible
         * format, for example:
         * array(
-        *              'Gadget-foo.js'  => array( 'ns' => NS_MEDIAWIKI, 'type' 
=> 'script' ),
-        *              'Gadget-foo.css' => array( 'ns' => NS_MEDIAWIKI, 'type' 
=> 'style' ),
+        *              'MediaWiki:Gadget-foo.js'  => array( 'type' => 'script' 
),
+        *              'MediaWiki:Gadget-foo.css' => array( 'type' => 'style' 
),
         * )
         * @param $dependencies Array: Names of resources this module depends on
         */


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to