summaryrefslogtreecommitdiffstats
path: root/tools/convert-modules.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/convert-modules.php')
-rw-r--r--tools/convert-modules.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/convert-modules.php b/tools/convert-modules.php
index f8c7a1a5..1b92490d 100644
--- a/tools/convert-modules.php
+++ b/tools/convert-modules.php
@@ -78,7 +78,7 @@ foreach (
$exFile = "modules/$module/lang/$lang/template-tags.json";
$existing = @json_decode(@file_get_contents($exFile), true);
if (!is_array($existing)) $existing = array();
- $existing = $existing + $old;
+ $existing += $old;
ksort($existing);
if (file_put_contents($exFile, json_encode($existing, JSON_PRETTY_PRINT)) > 0) {
unlink($path);
@@ -181,7 +181,6 @@ echo "Processing\n";
foreach ($messages as $id => $modules) {
asort($modules, SORT_NUMERIC);
$modules = array_reverse($modules, true);
- reset($modules);
$topModule = key($modules);
$topCount = $modules[$topModule];
$sum = 0;