Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -891,7 +891,7 @@ |
892 | 892 | of Skin::makeVariablesScript |
893 | 893 | |
894 | 894 | 'MarkPatrolled': before an edit is marked patrolled |
895 | | -$rc: RecentChange object of the revision to be marked patrolled |
| 895 | +$rcid: ID of the revision to be marked patrolled |
896 | 896 | $user: the user (object) marking the revision as patrolled |
897 | 897 | $wcOnlySysopsCanPatrol: config setting indicating whether the user |
898 | 898 | needs to be a sysop in order to mark an edit patrolled |
Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | // Automatic patrol needs "autopatrol", ordinary patrol needs "patrol" |
272 | 272 | $right = $auto ? 'autopatrol' : 'patrol'; |
273 | 273 | $errors = array_merge( $errors, $this->getTitle()->getUserPermissionsErrors( $right, $wgUser ) ); |
274 | | - if( !wfRunHooks('MarkPatrolled', array($this, &$wgUser, false)) ) { |
| 274 | + if( !wfRunHooks('MarkPatrolled', array($this->getAttribute('rc_id'), &$wgUser, false)) ) { |
275 | 275 | $errors[] = array('hookaborted'); |
276 | 276 | } |
277 | 277 | // Users without the 'autopatrol' right can't patrol their |