r31428 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31427‎ | r31428 | r31429 >
Date:15:54, 1 March 2008
Author:ialex
Status:old
Tags:
Comment:
(bug 11561) Fix fatal error when calling action=revert to non-image page
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2950,6 +2950,15 @@
29512951 /**#@-*/
29522952
29532953 /**
 2954+ * Overriden by ImagePage class, only present here to avoid a fatal error
 2955+ * Called for ?action=revert
 2956+ */
 2957+ public function revert(){
 2958+ global $wgOut;
 2959+ $wgOut->showErrorPage( 'nosuchaction', 'nosuchactiontext' );
 2960+ }
 2961+
 2962+ /**
29542963 * Info about this page
29552964 * Called for ?action=info when $wgAllowPageInfo is on.
29562965 *
Index: trunk/phase3/RELEASE-NOTES
@@ -61,6 +61,7 @@
6262 * (bug 13174) __HIDDENCAT__ now applies only to category pages
6363 * (bug 13031) Add links to user pages in e-mail form
6464 * (bug 13147) Description for categoriespagetext (used in Special:Categories) reworded
 65+* (bug 11561) Fix fatal error when calling action=revert to non-image page
6566
6667 === API changes in 1.13 ===
6768

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r26414(bug 11561) Don't throw a PHP fatal error when non-existent "revert" action a...robchurch20:54, 4 October 2007
r26431Merged revisions 26331-26430 via svnmerge from...david06:44, 5 October 2007

Status & tagging log