dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84d8dd5
)
Temporary plug for bug 24939 (interwiki creation during installation fails on SQLite...
author
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 26 Aug 2010 15:47:18 +0000
(15:47 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 26 Aug 2010 15:47:18 +0000
(15:47 +0000)
includes/db/DatabaseSqlite.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseSqlite.php
b/includes/db/DatabaseSqlite.php
index
82ce5c9
..
c1d58fa
100644
(file)
--- a/
includes/db/DatabaseSqlite.php
+++ b/
includes/db/DatabaseSqlite.php
@@
-560,12
+560,12
@@
class DatabaseSqlite extends DatabaseBase {
dieout( "Could not find the interwiki.sql file." );
}
- $sql = "INSERT INTO interwiki(iw_prefix,iw_url,iw_local) VALUES ";
+ $sql = "INSERT INTO interwiki(iw_prefix,iw_url,iw_local
,iw_api,iw_wikiid
) VALUES ";
while ( !feof( $f ) ) {
$line = fgets( $f, 1024 );
$matches = array();
if ( !preg_match( '/^\s*(\(.+?),(\d)\)/', $line, $matches ) ) continue;
- $this->query( "$sql $matches[1],$matches[2])" );
+ $this->query( "$sql $matches[1],$matches[2]
,'',''
)" );
}
}