X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=b04639c0e1337c51ad1f791628d5fca29a46fa7e;hb=d6d3363d0ed26d87a98d33bf0f5d3a91053d576c;hp=5833f8cd0478e644d1a7043c5b046ed7da1b4cca;hpb=ddff639b7566f72f0c2dda302280de2ee6774b7f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index 5833f8cd04..b04639c0e1 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -52,6 +52,7 @@ class RebuildLocalisationCache extends Maintenance { if ( $this->hasOption( 'memory-limit' ) ) { return parent::memoryLimit(); } + return '1000M'; } @@ -148,9 +149,9 @@ class RebuildLocalisationCache extends Maintenance { /** * Helper function to rebuild list of languages codes. Prints the code * for each language which is rebuilt. - * @param $codes array List of language codes to rebuild. - * @param $lc LocalisationCache Instance of LocalisationCacheBulkLoad (?) - * @param $force bool Rebuild up-to-date languages + * @param array $codes List of language codes to rebuild. + * @param LocalisationCache $lc Instance of LocalisationCacheBulkLoad (?) + * @param bool $force Rebuild up-to-date languages * @return int Number of rebuilt languages */ private function doRebuild( $codes, $lc, $force ) { @@ -162,6 +163,7 @@ class RebuildLocalisationCache extends Maintenance { $numRebuilt++; } } + return $numRebuilt; }