Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -116,6 +116,10 @@ |
117 | 117 | if ( $user == null ) { |
118 | 118 | return false; |
119 | 119 | } |
| 120 | + if ( $user->getId() == 0 ) |
| 121 | + { |
| 122 | + return false; |
| 123 | + } |
120 | 124 | // do we track them |
121 | 125 | return $user->getOption( "OnlineStatusBar_active", $wgOnlineStatusBarDefaultEnabled ); |
122 | 126 | } |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
— | — | @@ -47,8 +47,9 @@ |
48 | 48 | * @return bool |
49 | 49 | */ |
50 | 50 | public static function renderBar( &$article, &$outputDone, &$pcache ) { |
51 | | - global $wgOnlineStatusBar_Template, $messages, $wgOnlineStatusBarDefaultIpUsers, $wgOnlineStatusBarModes, $wgOut; |
| 51 | + global $messages, $wgOnlineStatusBarDefaultIpUsers, $wgOnlineStatusBarModes, $wgOut; |
52 | 52 | OnlineStatusBar::UpdateStatus(); |
| 53 | + // anonymous user |
53 | 54 | $anon = false; |
54 | 55 | $ns = $article->getTitle()->getNamespace(); |
55 | 56 | if ( ( $ns == NS_USER_TALK ) || ( $ns == NS_USER ) ) { |
— | — | @@ -69,7 +70,7 @@ |
70 | 71 | } |
71 | 72 | if ( $anon == false ) |
72 | 73 | { |
73 | | - //we don't want to check this |
| 74 | + // check if it's not anon, let's check the config |
74 | 75 | if ( $user->getOption ( "OnlineStatusBar_hide" ) == true ) { |
75 | 76 | return true; |
76 | 77 | } |