From 278789e27dfd2d37430e796d15df9777298cc0bf Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 6 Dec 2018 15:00:06 -0500 Subject: [PATCH] Remove TitleBlacklist handling code This has been moved to the TitleBlacklist extension. Bug: T211242 Change-Id: Ia15c2619e6c642b3ceb567c28f77b50ccf41731a Depends-On: Ibaf8a37f1aaef510923bde5ed9114f1f00fff461 --- extension.json | 1 - i18n/ve-mw/en.json | 1 - i18n/ve-mw/qqq.json | 1 - modules/ve-mw/init/ve.init.mw.ArticleTarget.js | 14 -------------- 4 files changed, 17 deletions(-) diff --git a/extension.json b/extension.json index 9a700871cb..ecd9134eb7 100644 --- a/extension.json +++ b/extension.json @@ -1579,7 +1579,6 @@ "visualeditor-savedialog-warning-dirty", "visualeditor-saveerror", "visualeditor-saveerror-hookaborted", - "visualeditor-saveerror-titleblacklist", "visualeditor-serializeerror", "visualeditor-recreate", "visualeditor-toolbar-savedialog", diff --git a/i18n/ve-mw/en.json b/i18n/ve-mw/en.json index f99bd61912..e5589b4bbf 100644 --- a/i18n/ve-mw/en.json +++ b/i18n/ve-mw/en.json @@ -394,7 +394,6 @@ "visualeditor-savedialog-warning-dirty": "Your edit may have been corrupted – please review before saving.", "visualeditor-saveerror": "Error saving data to server: $1.", "visualeditor-saveerror-hookaborted": "Error saving page: An extension on the server prevented you from saving.", - "visualeditor-saveerror-titleblacklist": "Error saving page: This page's title is blacklisted", "visualeditor-section-body-placeholder": "New section", "visualeditor-section-title-placeholder": "Subject", "visualeditor-serializeerror": "Error loading data from server: $1.", diff --git a/i18n/ve-mw/qqq.json b/i18n/ve-mw/qqq.json index 91a17b492c..9627dff13d 100644 --- a/i18n/ve-mw/qqq.json +++ b/i18n/ve-mw/qqq.json @@ -409,7 +409,6 @@ "visualeditor-savedialog-warning-dirty": "Note displayed to users in the save dialog if VisualEditor believes that it may have corrupted the page.", "visualeditor-saveerror": "Text shown when the editor fails to save properly.\n\nParameters:\n* $1 is an error message, in English.", "visualeditor-saveerror-hookaborted": "Text shown when the editor fails to save properly due to an unknown extension abort.", - "visualeditor-saveerror-titleblacklist": "Text shown when the editor fails to save properly due to the TitleBlacklist extension.", "visualeditor-section-body-placeholder": "Placeholder for surface when adding a new section", "visualeditor-section-title-placeholder": "Placeholder for title input when adding a new section\n{{Identical|Subject}}", "visualeditor-serializeerror": "Text shown when the editor fails to load the wikitext for saving.\n\nParameters:\n* $1 is an error message, in English.", diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index 2962bd5769..b42547702d 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -769,9 +769,6 @@ ve.init.mw.ArticleTarget.prototype.saveFail = function ( doc, saveData, wasRetry } else if ( data.error && data.error.code === 'pagedeleted' ) { this.saveErrorPageDeleted(); return; - } else if ( data.error && data.error.code === 'titleblacklist-forbidden' ) { - this.saveErrorTitleBlacklist(); - return; } else if ( data.error && data.error.code === 'hookaborted' ) { this.saveErrorHookAborted(); return; @@ -820,17 +817,6 @@ ve.init.mw.ArticleTarget.prototype.saveErrorEmpty = function () { this.emit( 'saveErrorEmpty' ); }; -/** - * Handle title blacklist save error - * - * @method - * @fires saveErrorTitleBlacklist - */ -ve.init.mw.ArticleTarget.prototype.saveErrorTitleBlacklist = function () { - this.showSaveError( mw.msg( 'visualeditor-saveerror-titleblacklist' ) ); - this.emit( 'saveErrorTitleBlacklist' ); -}; - /** * Handle hook abort save error *