X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.inc;h=e17319087b435d997375bbd15bf298b9cff9f587;hb=ba6431cbb92ff5df20f718c95e9ab1f73b4d15fe;hp=9729a726bbfa240a4df5abd736b7d8bc2878f280;hpb=01da3da43d18b123fe3679a6af21f046a78180d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index 9729a726bb..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 string|bool 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 );