r71704 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71703‎ | r71704 | r71705 >
Date:15:47, 26 August 2010
Author:maxsem
Status:ok
Tags:
Comment:
Temporary plug for bug 24939 (interwiki creation during installation fails on SQLite), before we switch to new-installer.
Modified paths:
  • /trunk/phase3/includes/db/DatabaseSqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabaseSqlite.php
@@ -560,12 +560,12 @@
561561 dieout( "Could not find the interwiki.sql file." );
562562 }
563563
564 - $sql = "INSERT INTO interwiki(iw_prefix,iw_url,iw_local) VALUES ";
 564+ $sql = "INSERT INTO interwiki(iw_prefix,iw_url,iw_local,iw_api,iw_wikiid) VALUES ";
565565 while ( !feof( $f ) ) {
566566 $line = fgets( $f, 1024 );
567567 $matches = array();
568568 if ( !preg_match( '/^\s*(\(.+?),(\d)\)/', $line, $matches ) ) continue;
569 - $this->query( "$sql $matches[1],$matches[2])" );
 569+ $this->query( "$sql $matches[1],$matches[2],'','')" );
570570 }
571571 }
572572

Status & tagging log