r28516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28515‎ | r28516 | r28517 >
Date:15:29, 15 December 2007
Author:vasilievvv
Status:old
Tags:
Comment:
Fix a typo
Modified paths:
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.list.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
@@ -82,7 +82,7 @@
8383 }
8484 $blacklist = $this->getBlacklist();
8585 foreach ( $blacklist as $item ) {
86 - if( $item->userCan( $title, $wgUser, $action ) ) {
 86+ if( !$item->userCan( $title, $wgUser, $action ) ) {
8787 return $item->getRaw();
8888 }
8989 }
@@ -115,14 +115,14 @@
116116 }
117117 if( preg_match( "/^{$this->mRegex}$/s" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ), $title->getFullText() ) ) {
118118 if( isset( $this->mParams['autoconfirmed'] ) && $user->isAllowed( 'autoconfirmed' ) ) {
119 - return false;
 119+ return true;
120120 }
121121 if( !isset( $this->mParams['noedit'] ) && $action == 'edit' ) {
122 - return false;
 122+ return true;
123123 }
124 - return true;
 124+ return false;
125125 }
126 - return false;
 126+ return true;
127127 }
128128
129129 public static function newFromString( $line ) {

Status & tagging log