Fix for r86041: when the user wants to unwatch the article, really unwatch it ;)
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 12 May 2011 20:39:41 +0000 (20:39 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 12 May 2011 20:39:41 +0000 (20:39 +0000)
includes/EditPage.php

index 48a28e8..d8fcdd7 100644 (file)
@@ -1157,7 +1157,7 @@ class EditPage {
                        if ( $this->watchthis ) {
                                Action::factory( 'watch', $this->mArticle )->execute();
                        } else {
-                               Action::factory( 'watch', $this->mArticle )->execute();
+                               Action::factory( 'unwatch', $this->mArticle )->execute();
                        }
                        $dbw->commit();
                }