Temporary plug for bug 24939 (interwiki creation during installation fails on SQLite...
authorMax Semenik <maxsem@users.mediawiki.org>
Thu, 26 Aug 2010 15:47:18 +0000 (15:47 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Thu, 26 Aug 2010 15:47:18 +0000 (15:47 +0000)
includes/db/DatabaseSqlite.php

index 82ce5c9..c1d58fa 100644 (file)
@@ -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],'','')" );
                }
        }