From: Zheng Zhu Date: Mon, 27 Dec 2004 01:40:48 +0000 (+0000) Subject: fix first parameter of the ArticleSave* hooks X-Git-Tag: 1.5.0alpha1~1026 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=a8dc15b83b58979aa7fb3473f3904499eea24171;p=lhc%2Fweb%2Fwiklou.git fix first parameter of the ArticleSave* hooks --- 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; }