Expand ArticleRollbackComplete hook to include reverted rev

This commit is contained in:
Aaron Schulz 2009-01-04 12:27:08 +00:00
parent 39fe2e55f0
commit f84ef99841
2 changed files with 2 additions and 1 deletions

View file

@ -420,6 +420,7 @@ $oldPageID: the page ID of the revision when archived (may be null)
$article: the article that was edited
$user: the user who did the rollback
$revision: the revision the page was reverted back to
$current: the reverted revision
'ArticleSave': before an article is saved
$article: the article (object) being saved

View file

@ -2658,7 +2658,7 @@ class Article {
$revId = false;
}
wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target ) );
wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target, $current ) );
$resultDetails = array(
'summary' => $summary,