Remove TitleBlacklist handling code

This has been moved to the TitleBlacklist extension.

Bug: T211242
Change-Id: Ia15c2619e6c642b3ceb567c28f77b50ccf41731a
Depends-On: Ibaf8a37f1aaef510923bde5ed9114f1f00fff461
This commit is contained in:
Ed Sanders 2018-12-06 15:00:06 -05:00
parent be548979fe
commit 278789e27d
4 changed files with 0 additions and 17 deletions

View file

@ -1579,7 +1579,6 @@
"visualeditor-savedialog-warning-dirty",
"visualeditor-saveerror",
"visualeditor-saveerror-hookaborted",
"visualeditor-saveerror-titleblacklist",
"visualeditor-serializeerror",
"visualeditor-recreate",
"visualeditor-toolbar-savedialog",

View file

@ -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.",

View file

@ -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.",

View file

@ -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
*