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
Move most of MWCryptHKDF into libs
[lhc/web/wiklou.git]
/
maintenance
/
sqlite.inc
diff --git
a/maintenance/sqlite.inc
b/maintenance/sqlite.inc
index
5c0fd07
..
33ca0ff
100644
(file)
--- a/
maintenance/sqlite.inc
+++ b/
maintenance/sqlite.inc
@@
-49,17
+49,17
@@
class Sqlite {
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 ) ) {
- $files =
array( $files )
;
+ $files =
[ $files ]
;
}
}
- $allowedTypes = array_flip(
array(
+ $allowedTypes = array_flip(
[
'integer',
'real',
'text',
'blob', // NULL type is omitted intentionally
'integer',
'real',
'text',
'blob', // NULL type is omitted intentionally
-
)
);
+
]
);
- $db =
new DatabaseSqliteStandalon
e( ':memory:' );
+ $db =
DatabaseSqlite::newStandaloneInstanc
e( ':memory:' );
try {
foreach ( $files as $file ) {
$err = $db->sourceFile( $file );
try {
foreach ( $files as $file ) {
$err = $db->sourceFile( $file );