mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Remove TitleBlacklist handling code"
This commit is contained in:
commit
ceed727a3a
|
@ -1579,7 +1579,6 @@
|
|||
"visualeditor-savedialog-warning-dirty",
|
||||
"visualeditor-saveerror",
|
||||
"visualeditor-saveerror-hookaborted",
|
||||
"visualeditor-saveerror-titleblacklist",
|
||||
"visualeditor-serializeerror",
|
||||
"visualeditor-recreate",
|
||||
"visualeditor-toolbar-savedialog",
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue