Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -35,22 +35,15 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | public static function ParserGetVariable ( &$parser, &$varCache, &$index, &$ret ){ |
39 | | - global $wgOnlineStatusBarDefaultOffline; |
40 | 39 | if( $index == 'isonline' ){ |
41 | 40 | $name = self::GetOwnerFromTitle ( $parser->getTitle() )->getName(); |
42 | 41 | |
43 | 42 | if ( self::IsValid($name) != true ) { |
44 | | - $ret = "false"; |
| 43 | + $ret = "unknown"; |
45 | 44 | return true; |
46 | 45 | } |
47 | | - |
48 | | - if( self::GetStatus ( $name ) == $wgOnlineStatusBarDefaultOffline ) { |
49 | | - $ret = "false"; |
50 | | - return true; |
51 | | - } else { |
52 | | - $ret = "true"; |
| 46 | + $ret = self::GetStatus( $name ); |
53 | 47 | } |
54 | | - } |
55 | 48 | return true; |
56 | 49 | } |
57 | 50 | |