dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
102211d
)
User more thorough mTitle->userCan checks for autopatrolling
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 1 Jan 2009 23:29:30 +0000
(23:29 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 1 Jan 2009 23:29:30 +0000
(23:29 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
b0bf080
..
456e3d9
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1562,7
+1562,7
@@
class Article {
# Update recentchanges
if( !( $flags & EDIT_SUPPRESS_RC ) ) {
# Mark as patrolled if the user can do so
# Update recentchanges
if( !( $flags & EDIT_SUPPRESS_RC ) ) {
# Mark as patrolled if the user can do so
- $patrolled = $wgUseRCPatrol && $
user->isAllowed
('autopatrol');
+ $patrolled = $wgUseRCPatrol && $
this->mTitle->userCan
('autopatrol');
# Add RC row to the DB
$rc = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $user, $summary,
$this->mLatest, $this->getTimestamp(), $bot, '', $oldsize, $newsize,
# Add RC row to the DB
$rc = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $user, $summary,
$this->mLatest, $this->getTimestamp(), $bot, '', $oldsize, $newsize,
@@
-1644,7
+1644,7
@@
class Article {
if( !( $flags & EDIT_SUPPRESS_RC ) ) {
global $wgUseRCPatrol, $wgUseNPPatrol;
# Mark as patrolled if the user can do so
if( !( $flags & EDIT_SUPPRESS_RC ) ) {
global $wgUseRCPatrol, $wgUseNPPatrol;
# Mark as patrolled if the user can do so
- $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $
user->isAllowed
('autopatrol');
+ $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $
this->mTitle->userCan
('autopatrol');
# Add RC row to the DB
$rc = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $user, $summary, $bot,
'', strlen($text), $revisionId, $patrolled );
# Add RC row to the DB
$rc = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $user, $summary, $bot,
'', strlen($text), $revisionId, $patrolled );