Bartosz Dziewoński has uploaded a new change for review.

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

Change subject: mw.UploadWizardDetails: Correctly pass raw mw.Message, not 
escaped text
......................................................................

mw.UploadWizardDetails: Correctly pass raw mw.Message, not escaped text

Follow-up to 4a62235c084672af3573f134480d58269cb3a092.
In the rare case where this would be reached, it would cause
obscure exceptions in weird places.

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


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

diff --git a/resources/mw.UploadWizardDetails.js 
b/resources/mw.UploadWizardDetails.js
index 80b88f4..f1b7bcc 100644
--- a/resources/mw.UploadWizardDetails.js
+++ b/resources/mw.UploadWizardDetails.js
@@ -1071,7 +1071,7 @@
                                        this.recoverFromError( mw.message( 
'mwe-upwiz-error-title-' + titleErrorMap[ code ] ), 'title-' + titleErrorMap[ 
code ] );
                                        return;
                                } else if ( code === 'titleblacklist-forbidden' 
) {
-                                       this.recoverFromError( this.titleId, 
mw.message( 'mwe-upwiz-error-title-' + titleBlacklistMessageMap[ 
result.error.message ] ).escaped(), 'title-' + titleBlacklistMessageMap[ 
result.error.message ] );
+                                       this.recoverFromError( this.titleId, 
mw.message( 'mwe-upwiz-error-title-' + titleBlacklistMessageMap[ 
result.error.message ] ), 'title-' + titleBlacklistMessageMap[ 
result.error.message ] );
                                        return;
                                } else {
                                        statusKey = 'api-error-' + code;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2eda421037846786ead346273807af18aa8c3b7c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to