Index: trunk/extensions/Gadgets/Gadgets_body.php |
— | — | @@ -314,11 +314,11 @@ |
315 | 315 | public function getModule() { |
316 | 316 | $pages = array(); |
317 | 317 | foreach( $this->styles as $style ) { |
318 | | - $pages[$style] = array( 'ns' => NS_MEDIAWIKI, 'type' => 'style' ); |
| 318 | + $pages['MediaWiki:' . $style] = array( 'type' => 'style' ); |
319 | 319 | } |
320 | 320 | if ( $this->supportsResourceLoader() ) { |
321 | 321 | foreach ( $this->scripts as $script ) { |
322 | | - $pages[$script] = array( 'ns' => NS_MEDIAWIKI, 'type' => 'script' ); |
| 322 | + $pages['MediaWiki:' . $script] = array( 'type' => 'script' ); |
323 | 323 | } |
324 | 324 | } |
325 | 325 | if ( !count( $pages ) ) { |
— | — | @@ -467,8 +467,8 @@ |
468 | 468 | * @param $pages Array: Associative array of pages in ResourceLoaderWikiModule-compatible |
469 | 469 | * format, for example: |
470 | 470 | * array( |
471 | | - * 'Gadget-foo.js' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'script' ), |
472 | | - * 'Gadget-foo.css' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'style' ), |
| 471 | + * 'MediaWiki:Gadget-foo.js' => array( 'type' => 'script' ), |
| 472 | + * 'MediaWiki:Gadget-foo.css' => array( 'type' => 'style' ), |
473 | 473 | * ) |
474 | 474 | * @param $dependencies Array: Names of resources this module depends on |
475 | 475 | */ |