r95510 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95509‎ | r95510 | r95511 >
Date:20:24, 25 August 2011
Author:neilk
Status:ok
Tags:
Comment:
show all the possible licenses when configuring a campaign
Modified paths:
  • /trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php
@@ -92,6 +92,13 @@
9393 $fields['Campaignname'] = array ( 'type' => 'text', 'default' => $this->subPage, 'label-message' => 'mwe-upwiz-campaign-name' );
9494 $fields['Campaignenabled'] = array ( 'type' => 'check', 'default' => $enabled, 'label-message' => 'mwe-upwiz-campaign-enabled' );
9595
 96+ // show _ALL_ the licenses!
 97+ $standardConfig = UploadWizardConfig::getConfig();
 98+ foreach ( $standardConfig['licenses'] as $key => $license ) {
 99+ $configFields['licensesOwnWork']['options'][ wfMsg( $license['msg'] ) ] = $key;
 100+ $configFields['defaultOwnWorkLicence']['options'][ wfMsg( $license['msg'] ) ] = $key;
 101+ }
 102+
96103 foreach ( $configFields as $name => $data ) {
97104 $data['label-message'] = 'mwe-upwiz-campaign-conf-' . $name;
98105

Follow-up revisions

RevisionCommit summaryAuthorDate
r95523merged r95510 from trunkneilk21:18, 25 August 2011

Status & tagging log