r95726 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95725‎ | r95726 | r95727 >
Date:23:25, 29 August 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
address point 2 from bug 30620
Modified paths:
  • /trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php
@@ -483,6 +483,12 @@
484484 protected function writePropsToDB( DatabaseBase $dbw ) {
485485 $success = true;
486486
 487+ if ( array_key_exists( 'defaultOwnWorkLicence', $this->config )
 488+ && array_key_exists( 'licensesOwnWork', $this->config )
 489+ && !in_array( $this->config['defaultOwnWorkLicence'], $this->config['licensesOwnWork'] ) ) {
 490+ $this->config['licensesOwnWork'][] = $this->config['defaultOwnWorkLicence'];
 491+ }
 492+
487493 $dbw->begin();
488494
489495 foreach ( $this->config as $prop => $value ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r95793fix point 3 from bug 30620jeroendedauw16:41, 30 August 2011
r958871.17wmf1: MFT UploadWizard fixes r95691, r95726, r95727, r95793, r95815, r958...catrope17:10, 31 August 2011

Status & tagging log