r93051 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93050‎ | r93051 | r93052 >
Date:15:51, 25 July 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
barch prop inserts
Modified paths:
  • /trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php
@@ -368,6 +368,8 @@
369369 protected function writePropsToDB( DatabaseBase $dbw ) {
370370 $success = true;
371371
 372+ $dbw->begin();
 373+
372374 foreach ( $this->config as $prop => $value ) {
373375 $success &= $dbw->insert(
374376 'uw_campaign_conf',
@@ -379,6 +381,8 @@
380382 );
381383 }
382384
 385+ $dbw->commit();
 386+
383387 return $success;
384388 }
385389

Status & tagging log