From bd39eaff9b38b5b0269b23b5c7c9a9f0127a314b Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Thu, 1 Oct 2009 19:02:30 +0000 Subject: [PATCH] * ignore the scirptName argument --- js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php b/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php index 44bf8f1a63..c126fc8b75 100644 --- a/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php +++ b/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php @@ -39,15 +39,15 @@ if ( in_array($argv[1], array('--help', '-help', '-h', '-?')) ) { } $mergeToPhp = $mergeToJS = false; $showInfo = true; -foreach($argv as $arg){ +foreach($argv as $inx => $arg){ + if($inx == 0) + continue; if( $arg == '-j' ){ $mergeToPhp = true; }else if( $arg == '-p' ) { $mergeToJS = true; }else if( $arg == '-q'){ $showInfo = false; - }else if( $arg == 'mergeJavascriptMsg.php'){ - //the script name do nothing }else{ print_help(); } -- 2.20.1