Fix a regression from r63144: "Fixed bizarre $time comparison (compared display time...
authorRaimond Spekking <raymond@users.mediawiki.org>
Sun, 29 May 2011 15:43:28 +0000 (15:43 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Sun, 29 May 2011 15:43:28 +0000 (15:43 +0000)
That's not correct: Timestamps in table logging are stored as yyyymmddhhmmss

includes/LogEventsList.php

index 3d24d4c..6ec54e1 100644 (file)
@@ -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 = '';