Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.status.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | * @return bool |
160 | 160 | */ |
161 | 161 | public static function updateStatus() { |
162 | | - global $wgUser, $wgOnlineStatusBarDefaultOffline, $wgOnlineStatusBarTrackIpUsers, $wgOnlineStatusBarDefaultEnabled; |
| 162 | + global $wgUser, $wgOnlineStatusBarDefaultOffline; |
163 | 163 | // if anon users are not tracked and user is anon leave it |
164 | 164 | if (!OnlineStatusBar::isValid( $wgUser )) { |
165 | 165 | return false; |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | | - * Delete old records from the table, this function is called frequently to keep the table it as small as possible |
| 187 | + * Delete old records from the table, this function is called frequently to keep the table as small as possible |
188 | 188 | * it's also possible to disable this function to set automatic job in cron to do that |
189 | 189 | * @return int |
190 | 190 | */ |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -95,6 +95,7 @@ |
96 | 96 | 'offline' => 'statusred.png', |
97 | 97 | ); |
98 | 98 | |
| 99 | +// For memcached |
99 | 100 | define( 'ONLINESTATUSBAR_DELAYED_CACHE', 'd' ); |
100 | 101 | define( 'ONLINESTATUSBAR_NORMAL_CACHE', 'n' ); |
101 | 102 | |