From fe2717522d5648e9d2752659b94e5eb4e1feea2f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 18 Mar 2009 07:55:19 +0000 Subject: [PATCH] (bug 18001) Rollback of null edit should restore flag --- docs/hooks.txt | 1 + includes/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index fae74e319a..f973d6b847 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -441,6 +441,7 @@ $isWatch: (No longer used) $section: (No longer used) $flags: Flags passed to Article::doEdit() $revision: New Revision of the article +$baseRevId: the rev ID (or false) this edit was based on 'ArticleUndelete': When one or more revisions of an article are restored $title: Title corresponding to the article restored diff --git a/includes/Article.php b/includes/Article.php index a8d4a81d73..fdaa241f0e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1771,7 +1771,7 @@ class Article { $status->value['revision'] = $revision; wfRunHooks( 'ArticleSaveComplete', array( &$this, &$user, $text, $summary, - $flags & EDIT_MINOR, null, null, &$flags, $revision, &$status ) ); + $flags & EDIT_MINOR, null, null, &$flags, $revision, &$status, $baseRevId ) ); wfProfileOut( __METHOD__ ); return $status; -- 2.20.1