From: Roan Kattouw Date: Tue, 16 Aug 2011 12:48:05 +0000 (+0000) Subject: Followup r89545: add ,0 to Article constructor call X-Git-Tag: 1.31.0-rc.0~28235 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=9a426f2a1424a8c4a6e2466ddfb9941f853a3a0f;p=lhc%2Fweb%2Fwiklou.git Followup r89545: add ,0 to Article constructor call --- diff --git a/includes/actions/WatchAction.php b/includes/actions/WatchAction.php index dc2d5d3095..52e6675430 100644 --- a/includes/actions/WatchAction.php +++ b/includes/actions/WatchAction.php @@ -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 );