r57240 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57239‎ | r57240 | r57241 >
Date:19:02, 1 October 2009
Author:dale
Status:deferred
Tags:
Comment:
* ignore the scirptName argument
Modified paths:
  • /trunk/phase3/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php (modified) (history)

Diff [purge]

Index: trunk/phase3/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php
@@ -39,15 +39,15 @@
4040 }
4141 $mergeToPhp = $mergeToJS = false;
4242 $showInfo = true;
43 -foreach($argv as $arg){
 43+foreach($argv as $inx => $arg){
 44+ if($inx == 0)
 45+ continue;
4446 if( $arg == '-j' ){
4547 $mergeToPhp = true;
4648 }else if( $arg == '-p' ) {
4749 $mergeToJS = true;
4850 }else if( $arg == '-q'){
4951 $showInfo = false;
50 - }else if( $arg == 'mergeJavascriptMsg.php'){
51 - //the script name do nothing
5252 }else{
5353 print_help();
5454 }

Status & tagging log