Index: branches/wmf/1.17wmf1/extensions/TitleBlacklist/TitleBlacklist.list.php |
— | — | @@ -309,11 +309,12 @@ |
310 | 310 | * @return TRUE if the user can; otherwise FALSE |
311 | 311 | */ |
312 | 312 | public function matches( $title, $action ) { |
| 313 | + global $wgUser; |
313 | 314 | wfSuppressWarnings(); |
314 | 315 | $match = preg_match( "/^(?:{$this->mRegex})$/us" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ), $title->getFullText() ); |
315 | 316 | wfRestoreWarnings(); |
316 | 317 | if( $match ) { |
317 | | - if( isset( $this->mParams['autoconfirmed'] ) && $user->isAllowed( 'autoconfirmed' ) ) { |
| 318 | + if( isset( $this->mParams['autoconfirmed'] ) && $wgUser->isAllowed( 'autoconfirmed' ) ) { |
318 | 319 | return true; |
319 | 320 | } |
320 | 321 | if( isset( $this->mParams['moveonly'] ) && $action != 'move' ) { |