Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git] / maintenance / updateDoubleWidthSearch.php
index cb2f125..810af57 100644 (file)
@@ -53,7 +53,7 @@ class UpdateDoubleWidthSearch extends Maintenance {
 
                $dbw = $this->getDB( DB_MASTER );
                if ( $dbw->getType() !== 'mysql' ) {
-                       $this->error( "This change is only needed on MySQL, quitting.\n", true );
+                       $this->fatalError( "This change is only needed on MySQL, quitting.\n" );
                }
 
                $res = $this->findRows( $dbw );
@@ -77,5 +77,5 @@ class UpdateDoubleWidthSearch extends Maintenance {
        }
 }
 
-$maintClass = "UpdateDoubleWidthSearch";
+$maintClass = UpdateDoubleWidthSearch::class;
 require_once RUN_MAINTENANCE_IF_MAIN;