aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/RevertAction.php
Commit message (Collapse)AuthorAgeFilesLines
* fix doc grouping for actionsAntoine Musso2012-02-081-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110942
* Reduce some duplication in Action::getRestriction(), all but 2 (plus one ↵Chad Horohoe2011-12-061-4/+0
| | | | | | | extension) return null anyway Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/105320
* Bug 29524 - Rename RequestContext::getLang to getLanguageJohn Du Hart2011-11-211-3/+3
| | | | | | | I'll be amazed if this doens't break any tests. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/103817
* * Changed OutputPage's handling of subtitles to use an array and implode it ↵Alexandre Emsenhuber2011-11-081-4/+2
| | | | | | | | | | | | | | | with "<br />" so that callers don't have to bother whether there's already a subtitle when adding new ones * Make OutputPage::setSubtitle(), OutputPage::addSubtitle() and OutputPage::appendSubtitle() accept a Message object in addition to a string * Added new method OutputPage::addSubtitle() to replace appendSubtitle() and marked it as deprecated * Clear the subtitles when showing an error page * Always show the subtitle from Article::viewRedirect() when showing a page; left the parameter for use in EditPage * Make Article::setOldSubtitle() add two subtitles and has to set "display:inline;" for the three possible divs to avoid too many spacing * Removed the six different backlink subtitles and added one new message 'backlinksubtitle' to replace them and added OutputPage::addBacklinkSubtitle() to factorise common code * Changed EditPage's view source to show "View source for <Page>" with the same backlink in subtitle for consistency with other back links and page titles Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/102417
* * Made PermissionsError exception accept an optional second parameter for ↵Alexandre Emsenhuber2011-11-021-1/+1
| | | | | | | | | | | | | | | the description of the errors (as returned by Title::getUserPermissionsErrors()) * PermissionsError now calls OutputPage::showPermissionsErrorPage() to display the error (this is needed to make the item above work correctly) * Removed the override of the HTML title in OutputPage::showPermissionsErrorPage() so that it shows "Permission errors - Sitename" instead of simply "Permission errors" for consistency with the other things * Pass the error array returned by Title::getUserPermissionsErrors() to PermissionsError where available * Converted direct calls to OutputPage::showPermissionsErrorPage() to throw an PermissionsError error instead * Added 'action-rollback' message that will be displayed when accessing action=rollback without sufficient rights * Changed getRestriction() in subclasses of Action to return null when they previously returned 'read' so that user rights can be check with Title::getUserPermissionsErrors() * Reordered checks to do first user rights, then block (if needed) and finally read only (also if needed) so that users don't think the error is temporary when they both don't have right and the database is locked Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/101630
* Make the PROTO_ parameter to wfExpandUrl() explicit in all calls. There are ↵Roan Kattouw2011-08-191-2/+6
| | | | | | | now no calls to wfExpandUrl() in core that rely on PROTO_CURRENT being the default. Also switch to using getCanonicalUrl() for.... rel="canonical" :D (I picked the right name, I KNEW IT) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/95010
* * Changed action=revert to use a subclass of ActionAlexandre Emsenhuber2011-07-011-0/+136
* Added WikiPage::getActionOverrides() to be able to execute different actions depending on the namespace (obviously needed for action=revert). This is only used when the value of $wgActions for the corresponding action is true; so extension can still override this. * Added Action::getDescription() to ease the change of the page header and the <title> element Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91284