fix first parameter of the ArticleSave* hooks
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 27 Dec 2004 01:40:48 +0000 (01:40 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 27 Dec 2004 01:40:48 +0000 (01:40 +0000)
includes/EditPage.php

index 3a8e3b7..a8e66e3 100644 (file)
@@ -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;
                                        }