User "Werdna" posted a comment on MediaWiki.r102024.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/102024#c25580
Commit summary:

Some cleanup to EditPage:
* Added displayPermissionsError() to show the permissions error page with the 
content if there's content to show or it will throw an normal exception if 
there's nothing to display; this restores a functionnality lost at some point 
and added new message 'viewyourtext' that is displayed when the user made 
changes to the content (e.g. when the block happens while the user is editing 
the page)
* Marked EditPage::readOnlyPage() as deprecated since displayPermissionsError() 
is now used. This also means that OutputPage::readOnlyPage() is no longer used 
to display such error pages (but still have to keep that functionnality since 
it's used by extensions, same for EditPage::readOnlyPage(), *sigh*)
* Removed blockedPage()'s display of content since it's nearly never called (a 
blocked user would trigger the path mentionned above, not the check in 
internalAttemptSave()) and also removed 'blockedoriginalsource' and 
'blockededitsource' messages that are no longer used
* Use OutputPage::prepareErrorPage() to prepare error pages instead of doing 
all that stuff directly
* Moved noCreatePermission() near other error-related functions
* Throw an exception directly in attemptSave() instead of calling deprecated 
methods and marked noCreatePermission() and blockedPage() as deprecated

Comment:

Shiny!

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to