Expand ArticleRollbackComplete hook to include reverted rev
This commit is contained in:
parent
39fe2e55f0
commit
f84ef99841
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue