Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
— | — | @@ -35,8 +35,8 @@ |
36 | 36 | // check if user had enabled this feature before we write to db |
37 | 37 | if ( $user->getOption( 'OnlineStatusBar_active', $wgOnlineStatusBarDefaultEnabled ) ) { |
38 | 38 | $userName = $user->getName(); |
| 39 | + OnlineStatusBar_StatusCheck::deleteStatus( $userName ); |
39 | 40 | OnlineStatusBar::purge( $userName ); |
40 | | - OnlineStatusBar_StatusCheck::deleteStatus( $userName ); |
41 | 41 | } |
42 | 42 | return true; |
43 | 43 | } |
— | — | @@ -48,10 +48,10 @@ |
49 | 49 | public static function updateStatus() { |
50 | 50 | global $wgUser; |
51 | 51 | if (OnlineStatusBar::isValid( $wgUser )) { |
| 52 | + // Update status |
| 53 | + OnlineStatusBar_StatusCheck::updateStatus(); |
52 | 54 | // Purge user page (optional) |
53 | 55 | OnlineStatusBar::purge( $wgUser ); |
54 | | - // Update status |
55 | | - OnlineStatusBar_StatusCheck::updateStatus(); |
56 | 56 | } |
57 | 57 | return true; |
58 | 58 | } |