From: Platonides Date: Tue, 19 Jul 2011 20:21:11 +0000 (+0000) Subject: r91784 forgot to change one instance of $wgUser to $user X-Git-Tag: 1.31.0-rc.0~28740 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=854c414cc17123025cd568850faf07c3452bc735;p=lhc%2Fweb%2Fwiklou.git r91784 forgot to change one instance of $wgUser to $user --- 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