Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | $samePage = false; |
263 | 263 | } |
264 | 264 | |
265 | | - if ( $samePage && $this->mNewPage->userCan( 'edit', $user ) ) { |
| 265 | + if ( $samePage && $this->mNewPage->quickUserCan( 'edit', $user ) ) { |
266 | 266 | if ( $this->mNewRev->isCurrent() && $this->mNewPage->userCan( 'rollback', $user ) ) { |
267 | 267 | $out->preventClickjacking(); |
268 | 268 | $rollback = '   ' . Linker::generateRollback( $this->mNewRev ); |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | |
405 | 405 | if ( $this->mMarkPatrolledLink === null ) { |
406 | 406 | // Prepare a change patrol link, if applicable |
407 | | - if ( $wgUseRCPatrol && $this->mNewPage->userCan( 'patrol', $this->getUser() ) ) { |
| 407 | + if ( $wgUseRCPatrol && $this->mNewPage->quickUserCan( 'patrol', $this->getUser() ) ) { |
408 | 408 | // If we've been given an explicit change identifier, use it; saves time |
409 | 409 | if ( $this->mRcidMarkPatrolled ) { |
410 | 410 | $rcid = $this->mRcidMarkPatrolled; |
— | — | @@ -867,7 +867,7 @@ |
868 | 868 | $editQuery['oldid'] = $rev->getID(); |
869 | 869 | } |
870 | 870 | |
871 | | - $msg = $this->msg( $title->userCan( 'edit', $user ) ? 'editold' : 'viewsourceold' )->escaped(); |
| 871 | + $msg = $this->msg( $title->quickUserCan( 'edit', $user ) ? 'editold' : 'viewsourceold' )->escaped(); |
872 | 872 | $header .= ' (' . Linker::linkKnown( $title, $msg, array(), $editQuery ) . ')'; |
873 | 873 | if ( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
874 | 874 | $header = Html::rawElement( 'span', array( 'class' => 'history-deleted' ), $header ); |