Followup r89545: add ,0 to Article constructor call
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 16 Aug 2011 12:48:05 +0000 (12:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 16 Aug 2011 12:48:05 +0000 (12:48 +0000)
includes/actions/WatchAction.php

index dc2d5d3..52e6675 100644 (file)
@@ -87,7 +87,7 @@ class WatchAction extends FormAction {
        }
 
        public static function doWatch( Title $title, User $user  ) {
-               $page = new Article( $title );
+               $page = new Article( $title, 0 );
 
                if ( wfRunHooks( 'WatchArticle', array( &$user, &$page ) ) ) {
                        $user->addWatch( $title );
@@ -97,7 +97,7 @@ class WatchAction extends FormAction {
        }
 
        public static function doUnwatch( Title $title, User $user  ) {
-               $page = new Article( $title );
+               $page = new Article( $title, 0 );
 
                if ( wfRunHooks( 'UnwatchArticle', array( &$user, &$page ) ) ) {
                        $user->removeWatch( $title );