r44304 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44303‎ | r44304 | r44305 >
Date:13:24, 8 December 2008
Author:werdna
Status:ok
Tags:
Comment:
Add a duplicate entry check for DB handler.
Modified paths:
  • /trunk/extensions/Configure/Configure.handler-db.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/Configure.handler-db.php
@@ -211,6 +211,11 @@
212212 $dbw = $this->getMasterDB();
213213 if ( !$ts )
214214 $ts = wfTimestampNow();
 215+
 216+ ## Look for dupes
 217+ if ($this->versionExists( $ts ))
 218+ $this->saveSettingsForWiki( $settings, $wiki, $ts+1, $reason );
 219+
215220 $dbw->begin();
216221 $dbw->insert( 'config_version',
217222 array(

Status & tagging log