Index: trunk/phase3/includes/Article.php |
— | — | @@ -1562,7 +1562,7 @@ |
1563 | 1563 | # Update recentchanges |
1564 | 1564 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1565 | 1565 | # Mark as patrolled if the user can do so |
1566 | | - $patrolled = $wgUseRCPatrol && $user->isAllowed('autopatrol'); |
| 1566 | + $patrolled = $wgUseRCPatrol && $this->mTitle->userCan('autopatrol'); |
1567 | 1567 | # Add RC row to the DB |
1568 | 1568 | $rc = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $user, $summary, |
1569 | 1569 | $this->mLatest, $this->getTimestamp(), $bot, '', $oldsize, $newsize, |
— | — | @@ -1644,7 +1644,7 @@ |
1645 | 1645 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1646 | 1646 | global $wgUseRCPatrol, $wgUseNPPatrol; |
1647 | 1647 | # Mark as patrolled if the user can do so |
1648 | | - $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $user->isAllowed('autopatrol'); |
| 1648 | + $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $this->mTitle->userCan('autopatrol'); |
1649 | 1649 | # Add RC row to the DB |
1650 | 1650 | $rc = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $user, $summary, $bot, |
1651 | 1651 | '', strlen($text), $revisionId, $patrolled ); |