r84683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84682‎ | r84683 | r84684 >
Date:15:41, 24 March 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r82524 to unbreak Gadgets
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php
@@ -318,11 +318,11 @@
319319 public function getModule() {
320320 $pages = array();
321321 foreach( $this->styles as $style ) {
322 - $pages[$style] = array( 'ns' => NS_MEDIAWIKI, 'type' => 'style' );
 322+ $pages['MediaWiki:' . $style] = array( 'type' => 'style' );
323323 }
324324 if ( $this->supportsResourceLoader() ) {
325325 foreach ( $this->scripts as $script ) {
326 - $pages[$script] = array( 'ns' => NS_MEDIAWIKI, 'type' => 'script' );
 326+ $pages['MediaWiki:' . $script] = array( 'type' => 'script' );
327327 }
328328 }
329329 if ( !count( $pages ) ) {
@@ -470,8 +470,8 @@
471471 * @param $pages Array: Associative array of pages in ResourceLoaderWikiModule-compatible
472472 * format, for example:
473473 * 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' ),
476476 * )
477477 * @param $dependencies Array: Names of resources this module depends on
478478 */

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82524Adapt Gadgets to changes in r81692maxsem18:14, 20 February 2011

Status & tagging log