Index: trunk/phase3/includes/Article.php |
— | — | @@ -994,7 +994,7 @@ |
995 | 995 | # Only diffs and new page links from RC give rcid params, so if |
996 | 996 | # we are just viewing the page normally with no rcid, try to find it. |
997 | 997 | # This is more convenient for users. |
998 | | - if( $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { |
| 998 | + if( $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) { |
999 | 999 | if( empty($rcid) ) { |
1000 | 1000 | $firstRev = $this->mTitle->getFirstRevision(); |
1001 | 1001 | $rcid = $firstRev ? $firstRev->isUnpatrolled() : 0; |
— | — | @@ -1006,7 +1006,7 @@ |
1007 | 1007 | } |
1008 | 1008 | # If we have been passed an &rcid= parameter, we want to give the user a |
1009 | 1009 | # chance to mark this new article as patrolled. |
1010 | | - if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { |
| 1010 | + if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) { |
1011 | 1011 | $wgOut->addHTML( |
1012 | 1012 | "<div class='patrollink'>" . |
1013 | 1013 | wfMsgHtml( 'markaspatrolledlink', |