diff options
author | Roan Kattouw <roan.kattouw@gmail.com> | 2018-04-24 12:48:35 -0700 |
---|---|---|
committer | Roan Kattouw <roan.kattouw@gmail.com> | 2018-04-26 11:21:48 -0700 |
commit | f841e886b692b36181a713c32d60a5ad719c4b9a (patch) | |
tree | 7e117c78ee95664a07bc06d83d4c87ed8e5490dc /includes/changes | |
parent | 98e01050c16e9a06cc4dab1a2c3456307a6c04f2 (diff) | |
download | mediawikicore-f841e886b692b36181a713c32d60a5ad719c4b9a.tar.gz mediawikicore-f841e886b692b36181a713c32d60a5ad719c4b9a.zip |
Use PRC_AUTOPATROLLED for log entries and category entries
These actions mark edits as patrolled automatically, so the
correct rc_patrolled value to use is PRC_AUTOPATROLLED rather than
PRC_PATROLLED. The code for log entries checks the autopatrol right, and
the code for category entries has a comment that says "just like log
entries".
Bug: T190408
Bug: T184791
Change-Id: Id994af8cd3833a862a09389431256aba35c2e6d9
Diffstat (limited to 'includes/changes')
-rw-r--r-- | includes/changes/RecentChange.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index 8e8b93f1184d..47e6c68621d0 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -884,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 ? self::PRC_PATROLLED : self::PRC_UNPATROLLED, + 'rc_patrolled' => $markPatrolled ? self::PRC_AUTOPATROLLED : self::PRC_UNPATROLLED, 'rc_new' => 0, # obsolete 'rc_old_len' => null, 'rc_new_len' => null, @@ -970,7 +970,7 @@ class RecentChange { 'rc_last_oldid' => $oldRevId, 'rc_bot' => $bot ? 1 : 0, 'rc_ip' => self::checkIPAddress( $ip ), - 'rc_patrolled' => self::PRC_PATROLLED, // Always patrolled, just like log entries + 'rc_patrolled' => self::PRC_AUTOPATROLLED, // Always patrolled, just like log entries 'rc_new' => 0, # obsolete 'rc_old_len' => null, 'rc_new_len' => null, |