X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateSpecialPages.php;h=1c6f9b339dffda4596d687a2c5842ab5f0536eed;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hp=cc9f763bc8d355101ca5ecc25ba3fff4af7ad00a;hpb=c8a7b21e6c0be34475028ab04bdd80012ce9a91d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index cc9f763bc8..1c6f9b339d 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -72,7 +72,7 @@ class UpdateSpecialPages extends Maintenance { $queryPage = $specialObj; } else { $class = get_class( $specialObj ); - $this->error( "$class is not an instance of QueryPage.\n", 1 ); + $this->fatalError( "$class is not an instance of QueryPage.\n" ); die; } @@ -101,7 +101,7 @@ class UpdateSpecialPages extends Maintenance { $this->output( sprintf( "%.2fs\n", $seconds ) ); } # Reopen any connections that have closed - $this->reopenAndWaitFotReplicas(); + $this->reopenAndWaitForReplicas(); } else { $this->output( "cheap, skipped\n" ); } @@ -118,7 +118,7 @@ class UpdateSpecialPages extends Maintenance { * Queries that take a really long time, might cause the * mysql connection to "go away" */ - private function reopenAndWaiFotReplicas() { + private function reopenAndWaitForReplicas() { if ( !wfGetLB()->pingAll() ) { $this->output( "\n" ); do { @@ -170,5 +170,5 @@ class UpdateSpecialPages extends Maintenance { } } -$maintClass = "UpdateSpecialPages"; +$maintClass = UpdateSpecialPages::class; require_once RUN_MAINTENANCE_IF_MAIN;