Index: trunk/phase3/includes/Article.php |
— | — | @@ -2950,6 +2950,15 @@ |
2951 | 2951 | /**#@-*/ |
2952 | 2952 | |
2953 | 2953 | /** |
| 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 | + /** |
2954 | 2963 | * Info about this page |
2955 | 2964 | * Called for ?action=info when $wgAllowPageInfo is on. |
2956 | 2965 | * |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | * (bug 13174) __HIDDENCAT__ now applies only to category pages |
63 | 63 | * (bug 13031) Add links to user pages in e-mail form |
64 | 64 | * (bug 13147) Description for categoriespagetext (used in Special:Categories) reworded |
| 65 | +* (bug 11561) Fix fatal error when calling action=revert to non-image page |
65 | 66 | |
66 | 67 | === API changes in 1.13 === |
67 | 68 | |