Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -35,6 +35,7 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | public static function ParserGetVariable ( &$parser, &$varCache, &$index, &$ret ){ |
| 39 | + global $wgOnlineStatusBarModes; |
39 | 40 | if( $index == 'isonline' ){ |
40 | 41 | $name = self::GetOwnerFromTitle ( $parser->getTitle() )->getName(); |
41 | 42 | |
— | — | @@ -42,7 +43,7 @@ |
43 | 44 | $ret = "unknown"; |
44 | 45 | return true; |
45 | 46 | } |
46 | | - $ret = self::GetStatus( $name ); |
| 47 | + $ret = $wgOnlineStatusBarModes[self::GetStatus( $name )]; |
47 | 48 | } |
48 | 49 | return true; |
49 | 50 | } |