r100975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100974‎ | r100975 | r100976 >
Date:13:58, 27 October 2011
Author:petrb
Status:deferred
Tags:
Comment:
fixed potential issue when users could get hidden status through isonline
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php
@@ -35,6 +35,7 @@
3636 }
3737
3838 public static function ParserGetVariable ( &$parser, &$varCache, &$index, &$ret ){
 39+ global $wgOnlineStatusBarModes;
3940 if( $index == 'isonline' ){
4041 $name = self::GetOwnerFromTitle ( $parser->getTitle() )->getName();
4142
@@ -42,7 +43,7 @@
4344 $ret = "unknown";
4445 return true;
4546 }
46 - $ret = self::GetStatus( $name );
 47+ $ret = $wgOnlineStatusBarModes[self::GetStatus( $name )];
4748 }
4849 return true;
4950 }

Status & tagging log