Merge "Don't fallback from uk to ru"
[lhc/web/wiklou.git] / maintenance / rebuildLocalisationCache.php
index 36caa3a..48602de 100644 (file)
@@ -104,7 +104,7 @@ class RebuildLocalisationCache extends Maintenance {
                $numRebuilt = 0;
                $total = count( $codes );
                $chunks = array_chunk( $codes, ceil( count( $codes ) / $threads ) );
-               $pids = array();
+               $pids = [];
                $parentStatus = 0;
                foreach ( $chunks as $codes ) {
                        // Do not fork for only one thread
@@ -112,8 +112,9 @@ class RebuildLocalisationCache extends Maintenance {
 
                        if ( $pid === 0 ) {
                                // Child, reseed because there is no bug in PHP:
-                               // http://bugs.php.net/bug.php?id=42465
+                               // https://bugs.php.net/bug.php?id=42465
                                mt_srand( getmypid() );
+
                                $this->doRebuild( $codes, $lc, $force );
                                exit( 0 );
                        } elseif ( $pid === -1 ) {