Rillke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/77491


Change subject: Messages with links in it must be parsed
......................................................................

Messages with links in it must be parsed

Otherwise something like
"There is [/wiki/File:Amphoe_Sukhothai.svg another file] already on the
wiki with the same filename"
is returned and shown as such to the user.

C.f. http://www.mediawiki.org/wiki/RL/DM#mediaWiki.message

Bug: 47935
Change-Id: Ie5a153a23cf2cbaa52456a2e48b8c828247b86b0
---
M resources/mw.UploadWizardDetails.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/91/77491/1

diff --git a/resources/mw.UploadWizardDetails.js 
b/resources/mw.UploadWizardDetails.js
index ca407b0..22f98e0 100644
--- a/resources/mw.UploadWizardDetails.js
+++ b/resources/mw.UploadWizardDetails.js
@@ -1339,7 +1339,7 @@
                                } else if ( warnings['bad-prefix'] ) {
                                        _this.recoverFromError( _this.titleId, 
mw.msg( 'mwe-upwiz-error-title-senselessimagename' ) );
                                } else if ( warnings.exists || 
warnings['exists-normalized'] ) {
-                                       _this.recoverFromError( _this.titleId, 
mw.msg( 'mwe-upwiz-api-warning-exists', _this.upload.title.getUrl() ) );
+                                       _this.recoverFromError( _this.titleId, 
mw.message( 'mwe-upwiz-api-warning-exists', _this.upload.title.getUrl() 
).parse() );
                                } else if ( warnings.duplicate ) {
                                        _this.recoverFromError( _this.titleId, 
mw.msg( 'mwe-upwiz-upload-error-duplicate' ) );
                                } else if ( warnings['duplicate-archive'] ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/77491
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5a153a23cf2cbaa52456a2e48b8c828247b86b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Rillke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to