r104557 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104556‎ | r104557 | r104558 >
Date:12:37, 29 November 2011
Author:petrb
Status:deferred
Tags:
Comment:
swapped purge so that it purges updated status
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php
@@ -35,8 +35,8 @@
3636 // check if user had enabled this feature before we write to db
3737 if ( $user->getOption( 'OnlineStatusBar_active', $wgOnlineStatusBarDefaultEnabled ) ) {
3838 $userName = $user->getName();
 39+ OnlineStatusBar_StatusCheck::deleteStatus( $userName );
3940 OnlineStatusBar::purge( $userName );
40 - OnlineStatusBar_StatusCheck::deleteStatus( $userName );
4141 }
4242 return true;
4343 }
@@ -48,10 +48,10 @@
4949 public static function updateStatus() {
5050 global $wgUser;
5151 if (OnlineStatusBar::isValid( $wgUser )) {
 52+ // Update status
 53+ OnlineStatusBar_StatusCheck::updateStatus();
5254 // Purge user page (optional)
5355 OnlineStatusBar::purge( $wgUser );
54 - // Update status
55 - OnlineStatusBar_StatusCheck::updateStatus();
5656 }
5757 return true;
5858 }

Status & tagging log