Index: branches/REL1_18/phase3/includes/RecentChange.php |
— | — | @@ -299,7 +299,7 @@ |
300 | 300 | // Automatic patrol needs "autopatrol", ordinary patrol needs "patrol" |
301 | 301 | $right = $auto ? 'autopatrol' : 'patrol'; |
302 | 302 | $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)) ) { |
304 | 304 | $errors[] = array('hookaborted'); |
305 | 305 | } |
306 | 306 | // Users without the 'autopatrol' right can't patrol their |