Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | } |
165 | 165 | $new_title = Title::makeTitleSafe( $row->page_namespace, $new_page_name ); |
166 | 166 | $err = $title->isValidMoveOperation( $new_title ); |
167 | | - if ( $title->userCan( 'move', true ) && !is_array( $err ) ) { |
| 167 | + if ( $title->userCan( 'move' ) && !is_array( $err ) ) { |
168 | 168 | $titles_for_move[] = $title; |
169 | 169 | } else { |
170 | 170 | $unmoveable_titles[] = $title; |
Index: trunk/extensions/Postcomment/Postcomment.php |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | return true; |
129 | 129 | } |
130 | 130 | |
131 | | - if ( !$title->userCan( 'edit', true ) ) { |
| 131 | + if ( !$title->userCan( 'edit' ) ) { |
132 | 132 | $data .= wfMsgHtml( 'postcomment_discussionprotected' ); |
133 | 133 | return true; |
134 | 134 | } |
Index: trunk/extensions/ImageTagging/ImageTagPage.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | |
22 | 22 | if ( |
23 | 23 | $wgUser->isAllowed( 'edit' ) && |
24 | | - $this->mTitle->userCan( 'edit', true ) && |
| 24 | + $this->mTitle->userCan( 'edit' ) && |
25 | 25 | ( $this->mTitle->isProtected( 'edit' ) == false || in_array( 'sysop', $wgUser->getGroups() ) ) |
26 | 26 | ) |
27 | 27 | { |
Index: trunk/extensions/ForcePreview/ForcePreview.php |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | |
80 | 80 | function efForcePreviewLivePreview( &$out, $sk = null ) { |
81 | 81 | global $wgUser, $wgRequest, $wgLivePreview, $wgTitle; |
82 | | - if( !$wgLivePreview || !$wgTitle->userCan( 'edit', true ) ) { |
| 82 | + if( !$wgLivePreview || !$wgTitle->userCan( 'edit' ) ) { |
83 | 83 | return true; |
84 | 84 | } |
85 | 85 | if( |
Index: trunk/extensions/LogEntry/LogEntry.page.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | $title = Title::newFromText( $page ); |
42 | 42 | |
43 | 43 | // Check permissions |
44 | | - if( $title && $title->userCan( 'edit', $page ) ) |
| 44 | + if( $title && $title->userCan( 'edit' ) ) |
45 | 45 | { |
46 | 46 | // Get article |
47 | 47 | $article = new Article( $title, 0 ); |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -769,7 +769,7 @@ |
770 | 770 | |
771 | 771 | $talkpage = $thread->article(); |
772 | 772 | |
773 | | - $canRead = $talkpage->getTitle()->userCan( 'read', false ); |
| 773 | + $canRead = $talkpage->getTitle()->quickUserCan( 'read' ); |
774 | 774 | |
775 | 775 | if ( $canRead ) { |
776 | 776 | return true; |