From: Aaron Schulz Date: Thu, 29 Jan 2009 16:03:13 +0000 (+0000) Subject: Use quickUserCan rather than strange boolean param :) X-Git-Tag: 1.31.0-rc.0~43134 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22http:/wikimediafoundation.org/fundraising/%7B%7B%20url_for%28%27user_settings%27%2C%20userid=session.userid%29%20%7D%7D?a=commitdiff_plain;h=d415d607b680829fc2b3a188e55d7cf4433793e5;p=lhc%2Fweb%2Fwiklou.git Use quickUserCan rather than strange boolean param :) --- diff --git a/includes/Article.php b/includes/Article.php index da8e0075d4..4bbf2e9a75 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -994,7 +994,7 @@ class Article { # Only diffs and new page links from RC give rcid params, so if # we are just viewing the page normally with no rcid, try to find it. # This is more convenient for users. - if( $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { + if( $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) { if( empty($rcid) ) { $firstRev = $this->mTitle->getFirstRevision(); $rcid = $firstRev ? $firstRev->isUnpatrolled() : 0; @@ -1006,7 +1006,7 @@ class Article { } # If we have been passed an &rcid= parameter, we want to give the user a # chance to mark this new article as patrolled. - if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { + if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) { $wgOut->addHTML( "