X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.inc;h=f14856a5b21bafd904e3ea9d700baca11d90b1ba;hb=efbfa0a727a196e63a2b71f0a82f09150c2be354;hp=cbb0c7967a720c936bfc3faa77831101f571da3c;hpb=0697e414854d42f22687c5e191e331ee06dc310c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index cbb0c7967a..f14856a5b2 100644 --- a/maintenance/sqlite.inc +++ b/maintenance/sqlite.inc @@ -22,6 +22,7 @@ */ use Wikimedia\Rdbms\DatabaseSqlite; +use Wikimedia\Rdbms\DBError; /** * This class contains code common to different SQLite-related maintenance scripts @@ -47,7 +48,7 @@ class Sqlite { * @return bool True if no error or error string in case of errors */ public static function checkSqlSyntax( $files ) { - if ( !Sqlite::isPresent() ) { + if ( !self::isPresent() ) { throw new MWException( "Can't check SQL syntax: SQLite not found" ); } if ( !is_array( $files ) ) {