X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=48602de0f46c63b2f6fef17b33920e4a6f53ebe8;hb=1674c8413a4ec5065040408a8cbdb948c74bf6fa;hp=36caa3a884406fa111c015447e36f1332d3d2af5;hpb=4b069cd1b88877fbb253af8780e358d96ba2587c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index 36caa3a884..48602de0f4 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -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 ) {