Merge "Remove TitleBlacklist handling code"

This commit is contained in:
jenkins-bot 2018-12-07 19:03:49 +00:00 committed by Gerrit Code Review
commit ceed727a3a
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
*