X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.php;h=fbde4175bc92010575fa2e35d52c03ade82b1e41;hb=d882c330cc991ed8b8a4443603ebc5b74187ef59;hp=454c506365a3f525ac837ee5cf196c6dfc9ca62d;hpb=0d0059d36e7494792378c020f5de6033985c3637;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 454c506365..fbde4175bc 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -83,7 +83,7 @@ class SqliteMaintenance extends Maintenance { private function vacuum() { $prevSize = filesize( $this->db->getDbFilePath() ); if ( $prevSize == 0 ) { - $this->error( "Can't vacuum an empty database.\n", true ); + $this->fatalError( "Can't vacuum an empty database.\n" ); } $this->output( 'VACUUM: ' ); @@ -132,7 +132,7 @@ class SqliteMaintenance extends Maintenance { $this->error( "Error: SQLite support not found\n" ); } $files = [ $this->getOption( 'check-syntax' ) ]; - $files += $this->mArgs; + $files = array_merge( $files, $this->mArgs ); $result = Sqlite::checkSqlSyntax( $files ); if ( $result === true ) { $this->output( "SQL syntax check: no errors detected.\n" );