r103127 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103126‎ | r103127 | r103128 >
Date:02:57, 15 November 2011
Author:petrb
Status:ok
Tags:
Comment:
fixed some extra character and replaced magic quotes with single
Modified paths:
  • /trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php
@@ -38,24 +38,24 @@
3939 }
4040
4141 if ( $parser->getTitle()->getNamespace() != NS_USER && $parser->getTitle()->getNamespace() != NS_USER_TALK ) {
42 - $ret = "unknown";
 42+ $ret = 'unknown';
4343 return true;
4444 }
4545
4646 $user = User::newFromName( $parser->getTitle()->getBaseText() );
4747 if ($user instanceof User) {
4848 if ($user->isBlocked()) {
49 - $ret = "true";
 49+ $ret = 'true';
5050 return true;
5151 } else {
52 - $ret = "false";
 52+ $ret = 'false';
5353 return true;
5454 }
5555 } else {
56 - $ret = "unknown";
 56+ $ret = 'unknown';
5757 return true;
5858 }
59 - $ret = "unknown";
 59+ $ret = 'unknown';
6060 return true;
6161 }
6262 }

Status & tagging log