dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PPFrame: Use explicit varargs in method parameters
[lhc/web/wiklou.git]
/
maintenance
/
sqlite.inc
diff --git
a/maintenance/sqlite.inc
b/maintenance/sqlite.inc
index
33ca0ff
..
f14856a
100644
(file)
--- a/
maintenance/sqlite.inc
+++ b/
maintenance/sqlite.inc
@@
-21,6
+21,9
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use Wikimedia\Rdbms\DatabaseSqlite;
+use Wikimedia\Rdbms\DBError;
+
/**
* This class contains code common to different SQLite-related maintenance scripts
*
/**
* This class contains code common to different SQLite-related maintenance scripts
*
@@
-45,7
+48,7
@@
class Sqlite {
* @return bool True if no error or error string in case of errors
*/
public static function checkSqlSyntax( $files ) {
* @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 ) ) {
throw new MWException( "Can't check SQL syntax: SQLite not found" );
}
if ( !is_array( $files ) ) {