X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.php;h=e74a86cf6961495a2e114af6ff3cef406aeabbf6;hb=a10b14d78a4589fbdfe33bc9c9c0a8ab85bd626e;hp=5cc35edc559a83d37ad4692b2b24eb5aa132c853;hpb=7ed96f4de2411d21cce4572e1fac7d3a8d2d0b77;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 5cc35edc55..e74a86cf69 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -128,11 +128,11 @@ class SqliteMaintenance extends Maintenance { } private function checkSyntax() { - if ( !Sqlite::IsPresent() ) { + if ( !Sqlite::isPresent() ) { $this->error( "Error: SQLite support not found\n" ); } - $files = array( $this->getOption( 'check-syntax' ) ); - $files += $this->mArgs; + $files = [ $this->getOption( 'check-syntax' ) ]; + $files = array_merge( $files, $this->mArgs ); $result = Sqlite::checkSqlSyntax( $files ); if ( $result === true ) { $this->output( "SQL syntax check: no errors detected.\n" );