X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fchanges%2FRecentChange.php;h=8e8b93f1184dd020d4bef4ba95d35826740518b9;hp=b0511209db7ae621b0640d001a269a830f661aa1;hb=598ea1fe0b6803d3972b1b97a79a4db7358e1a8a;hpb=3597e03663453c0596c69cb7f36070bade7ec6af diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index b0511209db..8e8b93f118 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -622,7 +622,7 @@ class RecentChange { $dbw->update( 'recentchanges', [ - 'rc_patrolled' => 1 + 'rc_patrolled' => self::PRC_PATROLLED ], [ 'rc_id' => $this->getAttribute( 'rc_id' ) @@ -704,9 +704,6 @@ class RecentChange { 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 ) @@ -780,9 +777,6 @@ class RecentChange { 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 ) @@ -890,7 +884,7 @@ class RecentChange { 'rc_last_oldid' => 0, 'rc_bot' => $user->isAllowed( 'bot' ) ? (int)$wgRequest->getBool( 'bot', true ) : 0, 'rc_ip' => self::checkIPAddress( $ip ), - 'rc_patrolled' => $markPatrolled ? 1 : 0, + 'rc_patrolled' => $markPatrolled ? self::PRC_PATROLLED : self::PRC_UNPATROLLED, 'rc_new' => 0, # obsolete 'rc_old_len' => null, 'rc_new_len' => null, @@ -976,7 +970,7 @@ class RecentChange { 'rc_last_oldid' => $oldRevId, 'rc_bot' => $bot ? 1 : 0, 'rc_ip' => self::checkIPAddress( $ip ), - 'rc_patrolled' => 1, // Always patrolled, just like log entries + 'rc_patrolled' => self::PRC_PATROLLED, // Always patrolled, just like log entries 'rc_new' => 0, # obsolete 'rc_old_len' => null, 'rc_new_len' => null,