Nischayn22 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/53041
Change subject: (bug 40472) Link to custom copyright tags were wrong.
......................................................................
(bug 40472) Link to custom copyright tags were wrong.
deed.+language code was appended to all links instead of just creative
commons links.
Change-Id: I73ce916211a8fb5095a4ba90b48ab98a6e502de9
---
M resources/mw.UploadWizardLicenseInput.js
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/41/53041/1
diff --git a/resources/mw.UploadWizardLicenseInput.js
b/resources/mw.UploadWizardLicenseInput.js
index 6f3b7fb..5ef2390 100644
--- a/resources/mw.UploadWizardLicenseInput.js
+++ b/resources/mw.UploadWizardLicenseInput.js
@@ -223,7 +223,10 @@
// The URL is optional, but if the message includes it as $2,
we surface the fact
// that it's misisng.
- var licenseURL = license.props['url'] === undefined ? '#missing
license URL' : license.props.url + 'deed.' + languageCode;
+ var licenseURL = license.props['url'] === undefined ? '#missing
license URL' : license.props.url;
+ if ( licenseURL.indexOf( 'creativecommons' ) != -1 ) {
+ licenseUrl = licenseURL + 'deed.' + languageCode;
+ }
var licenseLink = $j( '<a>' ).attr( { 'target': '_blank',
'href': licenseURL } );
var $icons = $j( '<span></span>' );
if ( license.props['icons'] !== undefined ) {
--
To view, visit https://gerrit.wikimedia.org/r/53041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I73ce916211a8fb5095a4ba90b48ab98a6e502de9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Nischayn22 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits