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