From 854c414cc17123025cd568850faf07c3452bc735 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 19 Jul 2011 20:21:11 +0000 Subject: [PATCH] r91784 forgot to change one instance of $wgUser to $user --- includes/RecentChange.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index a2b97965e6..2819ce6c3e 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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 -- 2.20.1