Index: trunk/extensions/UploadWizard/UploadWizardHooks.php |
— | — | @@ -543,7 +543,7 @@ |
544 | 544 | * |
545 | 545 | * @return string |
546 | 546 | */ |
547 | | - protected static function getLicenseMessage( $licenseName, array &$licenseConfig ) { |
| 547 | + public static function getLicenseMessage( $licenseName, array &$licenseConfig ) { |
548 | 548 | if ( array_key_exists( 'url', $licenseConfig[$licenseName] ) ) { |
549 | 549 | return wfMsgExt( $licenseConfig[$licenseName]['msg'], 'parseinline', '', $licenseConfig[$licenseName]['url'] ); |
550 | 550 | } |
Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | ); |
216 | 216 | |
217 | 217 | foreach ( $globalConfig['licensesOwnWork']['licenses'] as $license ) { |
218 | | - $licenceMsg = wfMsg( $globalConfig['licenses'][$license]['msg'] ); |
| 218 | + $licenceMsg = UploadWizardHooks::getLicenseMessage( $license, $globalConfig['licenses'] ); |
219 | 219 | $config['licensesOwnWork']['options'][$licenceMsg] = $license; |
220 | 220 | } |
221 | 221 | |