MediaWiki:Gadget-morebits.js: Difference between revisions

Repo at 79b422a: Protection error needn't be full protection
imported>Amorymeltzer
m (rm improper regex flag)
(Repo at 79b422a: Protection error needn't be full protection)
Line 2,760:
// non-admin attempting to edit a protected page - this gives a friendlier message than the default
if ( errorCode === "protectedpage" ) {
ctx.statusElement.error( "Failed to save edit: Page is fully protected" );
} else {
ctx.statusElement.error( "Failed to save edit: " + ctx.saveApi.getErrorText() );
Anonymous user