Index: trunk/phase3/includes/Article.php |
— | — | @@ -2119,15 +2119,17 @@ |
2120 | 2120 | ); |
2121 | 2121 | } |
2122 | 2122 | |
2123 | | - # Save it! |
| 2123 | + # Get the edit summary |
2124 | 2124 | $target = Revision::newFromId( $s->rev_id ); |
2125 | | - $newcomment = wfMsgForContent( 'revertpage', $target->getUserText(), $from ); |
| 2125 | + $newComment = wfMsgForContent( 'revertpage', $target->getUserText(), $from ); |
| 2126 | + $newComment = $wgRequest->getText( 'summary', $newComment ); |
2126 | 2127 | |
| 2128 | + # Save it! |
2127 | 2129 | $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) ); |
2128 | 2130 | $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
2129 | | - $wgOut->addHTML( '<h2>' . htmlspecialchars( $newcomment ) . "</h2>\n<hr />\n" ); |
| 2131 | + $wgOut->addHTML( '<h2>' . htmlspecialchars( $newComment ) . "</h2>\n<hr />\n" ); |
2130 | 2132 | |
2131 | | - $this->updateArticle( $target->getText(), $newcomment, 1, $this->mTitle->userIsWatching(), $bot ); |
| 2133 | + $this->updateArticle( $target->getText(), $newComment, 1, $this->mTitle->userIsWatching(), $bot ); |
2132 | 2134 | Article::onArticleEdit( $this->mTitle ); |
2133 | 2135 | |
2134 | 2136 | $dbw->commit(); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -286,6 +286,7 @@ |
287 | 287 | * Fix XML validity checks in parser tests on PHP 5.1 |
288 | 288 | * (bug 3844) ab: av: ba: ce: & kv: now inherit from LanguageRu.php |
289 | 289 | ii: & za: now inherit from LanguageZn_cn.php |
| 290 | +* Optional summary parameter to action=rollback, for user javascript |
290 | 291 | |
291 | 292 | |
292 | 293 | === Caveats === |