http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89114

Revision: 89114
Author:   raymond
Date:     2011-05-29 15:43:28 +0000 (Sun, 29 May 2011)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/phase3/includes/LogEventsList.php

Modified: trunk/phase3/includes/LogEventsList.php
===================================================================
--- trunk/phase3/includes/LogEventsList.php     2011-05-29 15:40:17 UTC (rev 
89113)
+++ trunk/phase3/includes/LogEventsList.php     2011-05-29 15:43:28 UTC (rev 
89114)
@@ -505,8 +505,9 @@
                                # 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 = '';


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to