r56822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56821‎ | r56822 | r56823 >
Date:15:23, 23 September 2009
Author:catrope
Status:ok
Tags:
Comment:
LocalisationUpdate: Fix index in replace() call, would fail on Postgres
Modified paths:
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php
@@ -359,8 +359,8 @@
360360 'lo_key' => $key
361361 );
362362 $db->replace( self::table( 'localisation' ),
363 - array( 'PRIMARY' ), $values,
364 - __METHOD__ );
 363+ array( array( 'lo_language', 'lo_key' ) ),
 364+ $values, __METHOD__ );
365365
366366 // Output extra logmessages when needed
367367 if ( $verbose ) {

Status & tagging log