r91784 forgot to change one instance of $wgUser to $user
authorPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 20:21:11 +0000 (20:21 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 20:21:11 +0000 (20:21 +0000)
includes/RecentChange.php

index a2b9796..2819ce6 100644 (file)
@@ -299,7 +299,7 @@ class RecentChange {
                // Automatic patrol needs "autopatrol", ordinary patrol needs "patrol"
                $right = $auto ? 'autopatrol' : 'patrol';
                $errors = array_merge( $errors, $this->getTitle()->getUserPermissionsErrors( $right, $user ) );
-               if( !wfRunHooks('MarkPatrolled', array($this->getAttribute('rc_id'), &$wgUser, false)) ) {
+               if( !wfRunHooks('MarkPatrolled', array($this->getAttribute('rc_id'), &$user, false)) ) {
                        $errors[] = array('hookaborted');
                }
                // Users without the 'autopatrol' right can't patrol their