add usage for --no-extensions
[lhc/web/wiklou.git] / maintenance / updateDoubleWidthSearch.php
index 7899628..61545f8 100644 (file)
@@ -43,8 +43,7 @@ class UpdateDoubleWidthSearch extends Maintenance {
 
                $dbw = wfGetDB( DB_MASTER );
                if ( $dbw->getType() !== 'mysql' ) {
-                       $this->output( "This change is only needed on MySQL, quitting.\n" );
-                       exit( 1 );
+                       $this->error( "This change is only needed on MySQL, quitting.\n", true );
                }
 
                $res = $this->findRows( $dbw );
@@ -68,4 +67,4 @@ class UpdateDoubleWidthSearch extends Maintenance {
 }
 
 $maintClass = "UpdateDoubleWidthSearch";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );