Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -41,10 +41,10 @@ |
42 | 42 | |
43 | 43 | // Update all MW core messages |
44 | 44 | $result = self::updateMediawikiMessages( $verbose ); |
45 | | - |
| 45 | + |
46 | 46 | // Update all Extension messages |
47 | 47 | foreach ( $wgExtensionMessagesFiles as $extension => $locFile ) { |
48 | | - $result += self::updateExtensionMessages( $locFile, $extension, $verbose ); |
| 48 | + $result = self::updateExtensionMessages( $locFile, $extension, $verbose ); |
49 | 49 | } |
50 | 50 | |
51 | 51 | // And output the result! |
— | — | @@ -353,7 +353,7 @@ |
354 | 354 | $base_messages = array(); |
355 | 355 | |
356 | 356 | $basefilecontents = self::getFileContents( $basefile ); |
357 | | - if ( $basefilecontents === false || $basefilecontents === "" ) return array(); // Failed |
| 357 | + if ( $basefilecontents === false || $basefilecontents === "" ) return 0; // Failed |
358 | 358 | |
359 | 359 | // Cleanup the file where needed |
360 | 360 | $basefilecontents = self::cleanupExtensionFile( $basefilecontents ); |
— | — | @@ -375,7 +375,7 @@ |
376 | 376 | eval( $basefilecontents ); |
377 | 377 | |
378 | 378 | $comparefilecontents = self::getFileContents( $comparefile ); |
379 | | - if ( $comparefilecontents === false || $comparefilecontents === "" ) return array(); // Failed |
| 379 | + if ( $comparefilecontents === false || $comparefilecontents === "" ) return 0; // Failed |
380 | 380 | |
381 | 381 | // Only get what we need |
382 | 382 | $comparefilecontents = self::cleanupExtensionFile( $comparefilecontents ); |