Index: trunk/phase3/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php |
— | — | @@ -39,15 +39,15 @@ |
40 | 40 | } |
41 | 41 | $mergeToPhp = $mergeToJS = false; |
42 | 42 | $showInfo = true; |
43 | | -foreach($argv as $arg){ |
| 43 | +foreach($argv as $inx => $arg){ |
| 44 | + if($inx == 0) |
| 45 | + continue; |
44 | 46 | if( $arg == '-j' ){ |
45 | 47 | $mergeToPhp = true; |
46 | 48 | }else if( $arg == '-p' ) { |
47 | 49 | $mergeToJS = true; |
48 | 50 | }else if( $arg == '-q'){ |
49 | 51 | $showInfo = false; |
50 | | - }else if( $arg == 'mergeJavascriptMsg.php'){ |
51 | | - //the script name do nothing |
52 | 52 | }else{ |
53 | 53 | print_help(); |
54 | 54 | } |