http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94630
Revision: 94630 Author: catrope Date: 2011-08-16 12:48:05 +0000 (Tue, 16 Aug 2011) Log Message: ----------- Followup r89545: add ,0 to Article constructor call Modified Paths: -------------- trunk/phase3/includes/actions/WatchAction.php Modified: trunk/phase3/includes/actions/WatchAction.php =================================================================== --- trunk/phase3/includes/actions/WatchAction.php 2011-08-16 12:46:15 UTC (rev 94629) +++ trunk/phase3/includes/actions/WatchAction.php 2011-08-16 12:48:05 UTC (rev 94630) @@ -87,7 +87,7 @@ } 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 @@ } 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 ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs