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