Index: trunk/phase3/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | $mergeToJS = true; |
29 | 29 | |
30 | 30 | if ( $mergeToPhp && $mergeToJS ) |
31 | | -die( 'please only set either $mergeToPhp or $mergeToJS' ); |
| 31 | +die( 'Please only set either $mergeToPhp or $mergeToJS' ); |
32 | 32 | |
33 | 33 | if ( $mergeToPhp ) |
34 | 34 | print "Will merge *Javascript to PHP* in 3 seconds "; |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | $startInx = strpos( $rawLangFile, $mwSTART_MSG_KEY ) + strlen( $mwSTART_MSG_KEY ); |
49 | 49 | $endInx = strpos( $rawLangFile, $mwEND_MSG_KEY ) + 1; |
50 | 50 | if ( $startInx === false || $endInx === false ) { |
51 | | - print "Could not find $mwSTART_MSG_KEY or $mwEND_MSG_KEY in mwEmbed.i18n.php \n"; |
| 51 | + print "Could not find $mwSTART_MSG_KEY or $mwEND_MSG_KEY in mwEmbed.i18n.php\n"; |
52 | 52 | exit(); |
53 | 53 | } |
54 | 54 | |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | } |
79 | 79 | // rebuild and output to single php file if mergeToPHP is on |
80 | 80 | if ( $mergeToPhp ) { |
81 | | - if ( file_put_contents( $mwLangFilePath, trim( $preFile ) . "\n\t" . trim( $msgSet ) . "\n" . trim( $postFile ) ) ) { |
| 81 | + if ( file_put_contents( $mwLangFilePath, trim( $preFile ) . "\n\t" . trim( $msgSet ) . "\n" . ltrim( $postFile ) ) ) { |
82 | 82 | print "updated $mwLangFilePath file\n"; |
83 | 83 | exit(); |
84 | 84 | } |