* logs of patrol events
*/
class PatrolLog {
+
/**
* Record a log event for a change being patrolled
*
* @return bool
*/
public static function record( $rc, $auto = false, User $user = null, $tags = null ) {
- global $wgLogAutopatrol;
-
- // do not log autopatrolled edits if setting disables it
- if ( $auto && !$wgLogAutopatrol ) {
+ // Do not log autopatrol actions: T184485
+ if ( $auto ) {
return false;
}
$user = $wgUser;
}
- $entry = new ManualLogEntry( 'patrol', 'patrol' );
+ $action = $auto ? 'autopatrol' : 'patrol';
+
+ $entry = new ManualLogEntry( 'patrol', $action );
$entry->setTarget( $rc->getTitle() );
$entry->setParameters( self::buildParams( $rc, $auto ) );
$entry->setPerformer( $user );