r81721 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81720‎ | r81721 | r81722 >
Date:12:13, 8 February 2011
Author:catrope
Status:ok
Tags:
Comment:
Fix r81719: trailing commas
Modified paths:
  • /trunk/phase3/resources/Resources.php (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/Resources.php
@@ -14,45 +14,45 @@
1515 'skins.vector' => array(
1616 'styles' => array( 'vector/screen.css' => array( 'media' => 'screen' ) ),
1717 'remoteBasePath' => $GLOBALS['wgStylePath'],
18 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 18+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
1919 ),
2020 'skins.monobook' => array(
2121 'styles' => array(
2222 'monobook/main.css' => array( 'media' => 'screen' ),
2323 ),
2424 'remoteBasePath' => $GLOBALS['wgStylePath'],
25 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 25+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
2626 ),
2727 'skins.simple' => array(
2828 'styles' => array( 'simple/main.css' => array( 'media' => 'screen' ) ),
2929 'remoteBasePath' => $GLOBALS['wgStylePath'],
30 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 30+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
3131 ),
3232 'skins.chick' => array(
3333 'styles' => array( 'chick/main.css' => array( 'media' => 'screen,handheld' ) ),
3434 'remoteBasePath' => $GLOBALS['wgStylePath'],
35 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 35+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
3636 ),
3737 'skins.modern' => array(
3838 'styles' => array( 'modern/main.css' => array( 'media' => 'screen' ),
3939 'modern/print.css' => array( 'media' => 'print' ) ),
4040 'remoteBasePath' => $GLOBALS['wgStylePath'],
41 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 41+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
4242 ),
4343 'skins.cologneblue' => array(
4444 'styles' => array( 'common/cologneblue.css' => array( 'media' => 'screen' ) ),
4545 'remoteBasePath' => $GLOBALS['wgStylePath'],
46 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 46+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
4747 ),
4848 'skins.nostalgia' => array(
4949 'styles' => array( 'common/nostalgia.css' => array( 'media' => 'screen' ) ),
5050 'remoteBasePath' => $GLOBALS['wgStylePath'],
51 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 51+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
5252 ),
5353 'skins.standard' => array(
5454 'styles' => array( 'common/wikistandard.css' => array( 'media' => 'screen' ) ),
5555 'remoteBasePath' => $GLOBALS['wgStylePath'],
56 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 56+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
5757 ),
5858
5959 /* jQuery */
@@ -490,7 +490,7 @@
491491 'mediawiki.legacy.ajax' => array(
492492 'scripts' => 'common/ajax.js',
493493 'remoteBasePath' => $GLOBALS['wgStylePath'],
494 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 494+ 'localBasePath' => "{$GLOBALS['IP']}/skins",,
495495 'messages' => array(
496496 'watch',
497497 'unwatch',
@@ -504,124 +504,124 @@
505505 'mediawiki.legacy.block' => array(
506506 'scripts' => 'common/block.js',
507507 'remoteBasePath' => $GLOBALS['wgStylePath'],
508 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 508+ 'localBasePath' => "{$GLOBALS['IP']}/skins",,
509509 'dependencies' => 'mediawiki.legacy.wikibits',
510510 ),
511511 'mediawiki.legacy.commonPrint' => array(
512512 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
513513 'remoteBasePath' => $GLOBALS['wgStylePath'],
514 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 514+ 'localBasePath' => "{$GLOBALS['IP']}/skins",,
515515 ),
516516 'mediawiki.legacy.config' => array(
517517 'scripts' => 'common/config.js',
518518 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
519519 'remoteBasePath' => $GLOBALS['wgStylePath'],
520 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 520+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
521521 'dependencies' => 'mediawiki.legacy.wikibits',
522522 ),
523523 'mediawiki.legacy.diff' => array(
524524 'scripts' => 'common/diff.js',
525525 'styles' => 'common/diff.css',
526526 'remoteBasePath' => $GLOBALS['wgStylePath'],
527 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 527+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
528528 'dependencies' => 'mediawiki.legacy.wikibits',
529529 ),
530530 'mediawiki.legacy.edit' => array(
531531 'scripts' => 'common/edit.js',
532532 'remoteBasePath' => $GLOBALS['wgStylePath'],
533 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 533+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
534534 'dependencies' => 'mediawiki.legacy.wikibits',
535535 ),
536536 'mediawiki.legacy.history' => array(
537537 'scripts' => 'common/history.js',
538538 'remoteBasePath' => $GLOBALS['wgStylePath'],
539 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 539+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
540540 'dependencies' => 'mediawiki.legacy.wikibits',
541541 ),
542542 'mediawiki.legacy.htmlform' => array(
543543 'scripts' => 'common/htmlform.js',
544544 'remoteBasePath' => $GLOBALS['wgStylePath'],
545 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 545+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
546546 'dependencies' => 'mediawiki.legacy.wikibits',
547547 ),
548548 'mediawiki.legacy.IEFixes' => array(
549549 'scripts' => 'common/IEFixes.js',
550550 'remoteBasePath' => $GLOBALS['wgStylePath'],
551 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 551+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
552552 'dependencies' => 'mediawiki.legacy.wikibits',
553553 ),
554554 'mediawiki.legacy.metadata' => array(
555555 'scripts' => 'common/metadata.js',
556556 'remoteBasePath' => $GLOBALS['wgStylePath'],
557 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 557+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
558558 'dependencies' => 'mediawiki.legacy.wikibits',
559559 'messages' => array( 'metadata-expand', 'metadata-collapse' ),
560560 ),
561561 'mediawiki.legacy.mwsuggest' => array(
562562 'scripts' => 'common/mwsuggest.js',
563563 'remoteBasePath' => $GLOBALS['wgStylePath'],
564 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 564+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
565565 'dependencies' => array( 'mediawiki.legacy.wikibits', 'jquery.client' ),
566566 'messages' => array( 'search-mwsuggest-enabled', 'search-mwsuggest-disabled' ),
567567 ),
568568 'mediawiki.legacy.password' => array(
569569 'scripts' => 'common/password.js',
570570 'remoteBasePath' => $GLOBALS['wgStylePath'],
571 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 571+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
572572 'styles' => 'common/password.css',
573573 'dependencies' => 'mediawiki.legacy.wikibits',
574574 ),
575575 'mediawiki.legacy.prefs' => array(
576576 'scripts' => 'common/prefs.js',
577577 'remoteBasePath' => $GLOBALS['wgStylePath'],
578 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 578+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
579579 'dependencies' => array( 'mediawiki.legacy.wikibits', 'mediawiki.legacy.htmlform' ),
580580 ),
581581 'mediawiki.legacy.preview' => array(
582582 'scripts' => 'common/preview.js',
583583 'remoteBasePath' => $GLOBALS['wgStylePath'],
584 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 584+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
585585 'dependencies' => 'mediawiki.legacy.wikibits',
586586 ),
587587 'mediawiki.legacy.protect' => array(
588588 'scripts' => 'common/protect.js',
589589 'remoteBasePath' => $GLOBALS['wgStylePath'],
590 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 590+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
591591 'dependencies' => 'mediawiki.legacy.wikibits',
592592 ),
593593 'mediawiki.legacy.search' => array(
594594 'scripts' => 'common/search.js',
595595 'remoteBasePath' => $GLOBALS['wgStylePath'],
596 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 596+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
597597 'styles' => 'common/search.css',
598598 'dependencies' => 'mediawiki.legacy.wikibits',
599599 ),
600600 'mediawiki.legacy.shared' => array(
601601 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
602602 'remoteBasePath' => $GLOBALS['wgStylePath'],
603 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 603+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
604604 ),
605605 'mediawiki.legacy.oldshared' => array(
606606 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
607607 'remoteBasePath' => $GLOBALS['wgStylePath'],
608 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 608+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
609609 ),
610610 'mediawiki.legacy.upload' => array(
611611 'scripts' => 'common/upload.js',
612612 'remoteBasePath' => $GLOBALS['wgStylePath'],
613 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 613+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
614614 'dependencies' => 'mediawiki.legacy.wikibits',
615615 ),
616616 'mediawiki.legacy.wikibits' => array(
617617 'scripts' => 'common/wikibits.js',
618618 'remoteBasePath' => $GLOBALS['wgStylePath'],
619 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 619+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
620620 'dependencies' => 'mediawiki.language',
621621 'messages' => array( 'showtoc', 'hidetoc' ),
622622 ),
623623 'mediawiki.legacy.wikiprintable' => array(
624624 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
625625 'remoteBasePath' => $GLOBALS['wgStylePath'],
626 - 'localBasePath' => "{$GLOBALS['IP']}/skins"
 626+ 'localBasePath' => "{$GLOBALS['IP']}/skins",
627627 ),
628628 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r81722Fix double commas from r81721. This time I actually ran it through php -l bef...catrope12:14, 8 February 2011
r817231.17wmf1: MFT r81719, r81721, r81722catrope12:15, 8 February 2011
r85348Fixes for r85151: grab Resources.php changes for r81719, r81721, r81722, r822...demon17:41, 4 April 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81719Quick fix to make debug mode work with non-standard $wgStylePath. This strips...catrope12:06, 8 February 2011

Status & tagging log