$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;
}
$this->output( sprintf( "%.2fs\n", $seconds ) );
}
# Reopen any connections that have closed
- $this->reopenAndWaitFotReplicas();
+ $this->reopenAndWaitForReplicas();
} else {
$this->output( "cheap, skipped\n" );
}
* 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 {
}
}
-$maintClass = "UpdateSpecialPages";
+$maintClass = UpdateSpecialPages::class;
require_once RUN_MAINTENANCE_IF_MAIN;