From 4a1a9bbf82335801a15dcd5c4f5326630278701a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 5 Nov 2015 04:07:38 +0100 Subject: [PATCH] ve.init.mw.Target: Update TitleBlacklist error code The error code has changed after T115258 and is now consistently 'titleblacklist-forbidden' for all TitleBlacklist errors. The API now also provides information about the exact error message to display (error.message) and the TitleBlacklist rule that matched (error.line), but we probably don't have that message client-side, so we're not trying to display it. Maybe when we can load it (T40280). Bug: T116198 Change-Id: I32fccc7d0b2b66c739d59db05c568a56d9f07eec --- modules/ve-mw/init/ve.init.mw.Target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.Target.js b/modules/ve-mw/init/ve.init.mw.Target.js index 736cf8dbc2..0c200fdf96 100644 --- a/modules/ve-mw/init/ve.init.mw.Target.js +++ b/modules/ve-mw/init/ve.init.mw.Target.js @@ -586,7 +586,7 @@ ve.init.mw.Target.prototype.saveFail = function ( doc, saveData, jqXHR, status, } else if ( data.error && data.error.code === 'pagedeleted' ) { this.saveErrorPageDeleted(); return; - } else if ( data.error && data.error.code === 'titleblacklist-forbidden-edit' ) { + } else if ( data.error && data.error.code === 'titleblacklist-forbidden' ) { this.saveErrorTitleBlacklist(); return; }