r45393 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45392‎ | r45393 | r45394 >
Date:12:27, 4 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Expand ArticleRollbackComplete hook to include reverted rev
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -420,6 +420,7 @@
421421 $article: the article that was edited
422422 $user: the user who did the rollback
423423 $revision: the revision the page was reverted back to
 424+$current: the reverted revision
424425
425426 'ArticleSave': before an article is saved
426427 $article: the article (object) being saved
Index: trunk/phase3/includes/Article.php
@@ -2658,7 +2658,7 @@
26592659 $revId = false;
26602660 }
26612661
2662 - wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target ) );
 2662+ wfRunHooks( 'ArticleRollbackComplete', array( $this, $wgUser, $target, $current ) );
26632663
26642664 $resultDetails = array(
26652665 'summary' => $summary,

Status & tagging log