r92569 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92568‎ | r92569 | r92570 >
Date:20:25, 19 July 2011
Author:platonides
Status:ok
Tags:
Comment:
MFT r92568
Modified paths:
  • /branches/REL1_18/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/includes/RecentChange.php
@@ -299,7 +299,7 @@
300300 // Automatic patrol needs "autopatrol", ordinary patrol needs "patrol"
301301 $right = $auto ? 'autopatrol' : 'patrol';
302302 $errors = array_merge( $errors, $this->getTitle()->getUserPermissionsErrors( $right, $user ) );
303 - if( !wfRunHooks('MarkPatrolled', array($this->getAttribute('rc_id'), &$wgUser, false)) ) {
 303+ if( !wfRunHooks('MarkPatrolled', array($this->getAttribute('rc_id'), &$user, false)) ) {
304304 $errors[] = array('hookaborted');
305305 }
306306 // Users without the 'autopatrol' right can't patrol their

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92568r91784 forgot to change one instance of $wgUser to $userplatonides20:21, 19 July 2011

Status & tagging log