*/
$wgUseFilePatrol = true;
-/**
- * Log autopatrol actions to the log table
- * The default used to be true before 1.31
- *
- * @since 1.22
- */
-$wgLogAutopatrol = false;
-
/**
* Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages
*/
function () use ( $rc, $tags ) {
$rc->addTags( $tags );
$rc->save();
- if ( $rc->mAttribs['rc_patrolled'] ) {
- PatrolLog::record( $rc, true, $rc->getPerformer() );
- }
},
DeferredUpdates::POSTSEND,
wfGetDB( DB_MASTER )
function () use ( $rc, $tags ) {
$rc->addTags( $tags );
$rc->save();
- if ( $rc->mAttribs['rc_patrolled'] ) {
- PatrolLog::record( $rc, true, $rc->getPerformer() );
- }
},
DeferredUpdates::POSTSEND,
wfGetDB( DB_MASTER )
if ( $to === 'udp' || $to === 'rcandudp' ) {
$rc->notifyRCFeeds();
}
-
- // Log the autopatrol if the log entry is patrollable
- if ( $this->getIsPatrollable() &&
- $rc->getAttribute( 'rc_patrolled' ) === RecentChange::PRC_AUTOPATROLLED
- ) {
- PatrolLog::record( $rc, true, $this->getPerformer() );
- }
}
},
DeferredUpdates::POSTSEND,
* 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;
}