r81751 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81750‎ | r81751 | r81752 >
Date:15:26, 8 February 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: Superficially fix fatal caused by r76344
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/TitleBlacklist/TitleBlacklist.list.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/TitleBlacklist/TitleBlacklist.list.php
@@ -309,11 +309,12 @@
310310 * @return TRUE if the user can; otherwise FALSE
311311 */
312312 public function matches( $title, $action ) {
 313+ global $wgUser;
313314 wfSuppressWarnings();
314315 $match = preg_match( "/^(?:{$this->mRegex})$/us" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ), $title->getFullText() );
315316 wfRestoreWarnings();
316317 if( $match ) {
317 - if( isset( $this->mParams['autoconfirmed'] ) && $user->isAllowed( 'autoconfirmed' ) ) {
 318+ if( isset( $this->mParams['autoconfirmed'] ) && $wgUser->isAllowed( 'autoconfirmed' ) ) {
318319 return true;
319320 }
320321 if( isset( $this->mParams['moveonly'] ) && $action != 'move' ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76344Title blacklist:...vasilievvv21:55, 8 November 2010

Status & tagging log