X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.inc;h=e17319087b435d997375bbd15bf298b9cff9f587;hb=638c4528259b71a5bc90439fad7cd8d110a86b06;hp=43b259806cc316a1e05bb8f66e5dae61f9ad0fb8;hpb=a877f3d4114dc9570d03177930ddbfd1332f909a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index 43b259806c..e17319087b 100644 --- a/maintenance/sqlite.inc +++ b/maintenance/sqlite.inc @@ -42,7 +42,7 @@ class Sqlite { * Will throw exceptions on SQL errors * @param array|string $files * @throws MWException - * @return True if no error or error string in case of errors + * @return bool True if no error or error string in case of errors */ public static function checkSqlSyntax( $files ) { if ( !Sqlite::isPresent() ) { @@ -59,7 +59,7 @@ class Sqlite { 'blob', // NULL type is omitted intentionally ) ); - $db = new DatabaseSqliteStandalone( ':memory:' ); + $db = DatabaseSqlite::newStandaloneInstance( ':memory:' ); try { foreach ( $files as $file ) { $err = $db->sourceFile( $file );