Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -420,6 +420,7 @@ |
421 | 421 | $article: the article that was edited |
422 | 422 | $user: the user who did the rollback |
423 | 423 | $revision: the revision the page was reverted back to |
| 424 | +$current: the reverted revision |
424 | 425 | |
425 | 426 | 'ArticleSave': before an article is saved |
426 | 427 | $article: the article (object) being saved |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -2658,7 +2658,7 @@ |
2659 | 2659 | $revId = false; |
2660 | 2660 | } |
2661 | 2661 | |
2662 | | - wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target ) ); |
| 2662 | + wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target, $current ) ); |
2663 | 2663 | |
2664 | 2664 | $resultDetails = array( |
2665 | 2665 | 'summary' => $summary, |