X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flogging%2FPatrolLog.php;h=d737a4b1e1e55d141c18a1a0d6e9fe8c7d68d7b6;hb=ef970021795d220af007fd603e4813c1122bc8ef;hp=d1de2cd3aedefb86230d561eef6229b186390329;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/PatrolLog.php b/includes/logging/PatrolLog.php index d1de2cd3ae..d737a4b1e1 100644 --- a/includes/logging/PatrolLog.php +++ b/includes/logging/PatrolLog.php @@ -27,22 +27,21 @@ * logs of patrol events */ class PatrolLog { + /** * Record a log event for a change being patrolled * * @param int|RecentChange $rc Change identifier or RecentChange object * @param bool $auto Was this patrol event automatic? - * @param User $user User performing the action or null to use $wgUser - * @param string|string[] $tags Change tags to add to the patrol log entry + * @param User|null $user User performing the action or null to use $wgUser + * @param string|string[]|null $tags Change tags to add to the patrol log entry * ($user should be able to add the specified tags before this is called) * * @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; }