X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=includes%2Fchanges%2FChangesList.php;h=1741e64c19c4ebd9ff42527a624676cfc13840d9;hb=6505e5f278aae664f78fb8f876c10902d2195231;hp=7eadcc80d48b6570b9233595d827739519adf0be;hpb=bcc79f320b83fd8808e8df7cdf3b53ac624014df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index 7eadcc80d4..1741e64c19 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -625,9 +625,11 @@ class ChangesList extends ContextSource { if ( $rc instanceof RecentChange ) { $isPatrolled = $rc->mAttribs['rc_patrolled']; $rcType = $rc->mAttribs['rc_type']; + $rcLogType = $rc->mAttribs['rc_log_type']; } else { $isPatrolled = $rc->rc_patrolled; $rcType = $rc->rc_type; + $rcLogType = $rc->rc_log_type; } if ( !$isPatrolled ) { @@ -637,6 +639,9 @@ class ChangesList extends ContextSource { if ( $user->useNPPatrol() && $rcType == RC_NEW ) { return true; } + if ( $user->useFilePatrol() && $rcLogType == 'upload' ) { + return true; + } } return false;