r101150 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101149‎ | r101150 | r101151 >
Date:16:44, 28 October 2011
Author:petrb
Status:deferred
Tags:
Comment:
fixed even in magic work
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php
@@ -153,6 +153,9 @@
154154
155155 $result = OnlineStatusBar::getUserInfoFromTitle( $parser->getTitle() );
156156
 157+ if ( User::isIP( $parser->getTitle()->getBaseText() ) && $result === null ) {
 158+ $result = OnlineStatusBar::getAnonFromTitle( $parser->getTitle() );
 159+ }
157160 if ( $result === null ) {
158161 $ret = "unknown";
159162 return true;

Status & tagging log