r94868 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94867‎ | r94868 | r94869 >
Date:05:47, 18 August 2011
Author:nad
Status:deferred
Tags:
Comment:
use the date/time sorting method shown in Help:Sorting
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin.php (modified) (history)
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -418,8 +418,8 @@
419419 $text = str_replace( '%SELECT%', $sel, $text );
420420 $table .= "$text\n";
421421 } else {
422 - $tsc = $this->formatDate( $r['created'] );
423 - $tsm = $this->formatDate( $r['modified'] );
 422+ $tsc = '<span style="display:none">' . ( 3e11 + date( 'U', $r['created'] ) ) . '</span>' . $this->formatDate( $r['created'] );
 423+ $tsm = '<span style="display:none">' . ( 3e11 + date( 'U', $r['modified'] ) ) . '</span>' . $this->formatDate( $r['modified'] );
424424 $t = $r[0];
425425 $u = $t->getLocalURL();
426426 $col = $r['title'];
Index: trunk/extensions/RecordAdmin/RecordAdmin.php
@@ -10,7 +10,7 @@
1111 * @author Siebrand Mazeland
1212 * @licence GNU General Public Licence 2.0 or later
1313 */
14 -define( 'RECORDADMIN_VERSION', '1.3.2, 2011-08-18' );
 14+define( 'RECORDADMIN_VERSION', '1.3.3, 2011-08-18' );
1515
1616 $wgRecordAdminExtPath = preg_replace( "|^.*(/extensions/.*$)|", "$wgScriptPath$1", dirname( __FILE__ ) );
1717

Status & tagging log