From a8dc15b83b58979aa7fb3473f3904499eea24171 Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Mon, 27 Dec 2004 01:40:48 +0000 Subject: [PATCH] fix first parameter of the ArticleSave* hooks --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 3a8e3b7f86..a8e66e311b 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -257,14 +257,14 @@ class EditPage { } } - if (wfRunHooks('ArticleSave', $this, $wgUser, $text, $this->summary, + if (wfRunHooks('ArticleSave', $this->mArticle, $wgUser, $text, $this->summary, $this->minoredit, $this->watchthis, $sectionanchor)) { # update the article here if($this->mArticle->updateArticle( $text, $this->summary, $this->minoredit, $this->watchthis, '', $sectionanchor )) { - wfRunHooks('ArticleSaveComplete', $this, $wgUser, $text, $this->summary, + wfRunHooks('ArticleSaveComplete', $this->mArticle, $wgUser, $text, $this->summary, $this->minoredit, $this->watchthis, $sectionanchor); return; } -- 2.20.1