From: Raimond Spekking Date: Sun, 29 May 2011 15:43:28 +0000 (+0000) Subject: Fix a regression from r63144: "Fixed bizarre $time comparison (compared display time... X-Git-Tag: 1.31.0-rc.0~29858 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=d37cca4bf8f86149083342556f849c22a8c525a9;p=lhc%2Fweb%2Fwiklou.git Fix a regression from r63144: "Fixed bizarre $time comparison (compared display time and a UNIX const time)" That's not correct: Timestamps in table logging are stored as yyyymmddhhmmss --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 3d24d4cfc8..6ec54e10d0 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -505,8 +505,9 @@ class LogEventsList { # Fall back to a blue contributions link $revert = $this->skin->userToolLinks( 1, $title->getDBkey() ); } - $ts = wfTimestamp( TS_UNIX, $row->log_timestamp ); - if( $ts < '20080129000000' ) { + #$ts = wfTimestamp( TS_UNIX, $row->log_timestamp ); + var_dump( wfTimestamp( TS_UNIX, '20080129000000' ) ); + if( $row->log_timestamp < '20080129000000' ) { # Suppress $comment from old entries (before 2008-01-29), # not needed and can contain incorrect links $comment = '';