r101248 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101247‎ | r101248 | r101249 >
Date:10:18, 29 October 2011
Author:petrb
Status:deferred
Tags:
Comment:
synchronized timestamp
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php
@@ -170,7 +170,7 @@
171171 public static function DeleteOld() {
172172 global $wgOnlineStatusBar_LogoutTime;
173173 $dbw = wfGetDB( DB_MASTER );
174 - $time = wfTimestamp( TS_UNIX ) - $wgOnlineStatusBar_LogoutTime;
 174+ $time = $dbw->timestamp() - $wgOnlineStatusBar_LogoutTime;
175175 $dbw->delete( 'online_status', array( "timestamp < $time" ), __METHOD__ );
176176 return 0;
177177 }

Status & tagging log