X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=4213d5f85d9f97405ea74b7dcfb7348f6d406dea;hp=48602de0f46c63b2f6fef17b33920e4a6f53ebe8;hb=5490b1270a0a7447f28d2407736fc3c1deb41d44;hpb=ea42d90053b36cef47f318a1d50c18dfafc6b7b8 diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index 48602de0f4..4213d5f85d 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -92,7 +92,7 @@ class RebuildLocalisationCache extends Maintenance { explode( ',', $this->getOption( 'lang' ) ) ); # Bailed out if nothing is left if ( count( $codes ) == 0 ) { - $this->error( 'None of the languages specified exists.', 1 ); + $this->fatalError( 'None of the languages specified exists.' ); } } else { # By default get all languages @@ -177,5 +177,5 @@ class RebuildLocalisationCache extends Maintenance { } } -$maintClass = "RebuildLocalisationCache"; +$maintClass = RebuildLocalisationCache::class; require_once RUN_MAINTENANCE_IF_MAIN;