Index: trunk/extensions/Translate/CreateMessageIndex.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | echo "Working with $id\n"; |
19 | 19 | } else { |
20 | 20 | echo "Something wrong with $id... skipping\n"; |
| 21 | + continue; |
21 | 22 | } |
22 | 23 | foreach ( $messages as $key => $data ) { |
23 | 24 | # Force all keys to lower case, because the case doesn't matter and it is |
— | — | @@ -32,4 +33,4 @@ |
33 | 34 | unset($id); // Disconnect the previous references to this $id |
34 | 35 | } |
35 | 36 | |
36 | | -file_put_contents( TRANSLATE_INDEXFILE, serialize( $hugearray ) ); |
\ No newline at end of file |
| 37 | +file_put_contents( TRANSLATE_INDEXFILE, serialize( $hugearray ) ); |
Index: trunk/extensions/Translate/export.php |
— | — | @@ -45,8 +45,9 @@ |
46 | 46 | |
47 | 47 | $group = MessageGroups::getGroup( $options['group'] ); |
48 | 48 | |
49 | | -if ( is_null( $group ) || $group->isMeta() ) { |
| 49 | +if ( !$group instanceof MessageGroup || $group->isMeta() ) { |
50 | 50 | echo "Invalid group\n\n"; |
| 51 | + exit( 1 ); |
51 | 52 | } |
52 | 53 | |
53 | 54 | if ( $group->canExportToFile() ) { |
— | — | @@ -54,4 +55,4 @@ |
55 | 56 | $exporter->export( $langs, $options['target'] ); |
56 | 57 | } else { |
57 | 58 | echo "Cannot export to file\n\n"; |
58 | | -} |
\ No newline at end of file |
| 59 | +} |