r94630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94629‎ | r94630 | r94631 >
Date:12:48, 16 August 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r89545: add ,0 to Article constructor call
Modified paths:
  • /trunk/phase3/includes/actions/WatchAction.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/actions/WatchAction.php
@@ -87,7 +87,7 @@
8888 }
8989
9090 public static function doWatch( Title $title, User $user ) {
91 - $page = new Article( $title );
 91+ $page = new Article( $title, 0 );
9292
9393 if ( wfRunHooks( 'WatchArticle', array( &$user, &$page ) ) ) {
9494 $user->addWatch( $title );
@@ -97,7 +97,7 @@
9898 }
9999
100100 public static function doUnwatch( Title $title, User $user ) {
101 - $page = new Article( $title );
 101+ $page = new Article( $title, 0 );
102102
103103 if ( wfRunHooks( 'UnwatchArticle', array( &$user, &$page ) ) ) {
104104 $user->removeWatch( $title );

Follow-up revisions

RevisionCommit summaryAuthorDate
r96088MFT to REL1_18...hashar10:53, 2 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89545WatchAction requires token (BREAKING CHANGE)...krinkle00:09, 6 June 2011

Status & tagging log