r23077 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23076‎ | r23077 | r23078 >
Date:20:03, 18 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix inconsistent dates across ip/user summaries and edit lists: time offset was only applied to edit lists
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -353,7 +353,7 @@
354354 $users_agentsets[$row->cuc_user_text][] = $row->cuc_agent;
355355 }
356356 }
357 - # Reverse the order so its first -> last
 357+ # Reverse the order so it's first -> last
358358 foreach( $users_infosets as $set )
359359 $set = array_reverse( $set );
360360 foreach( $users_agentsets as $set )
@@ -365,7 +365,7 @@
366366 $s .= '<li>';
367367 $s .= $sk->userLink( -1 , $name ) . $sk->userToolLinks( -1 , $name ); // hack, ALWAYS show contribs links
368368 $s .= ' (<a href="' . $wgTitle->escapeLocalURL( 'user=' . urlencode( $name ) ) . '">' . wfMsgHtml('checkuser-check') . '</a>)';
369 - $s .= ' (' . $wgLang->timeanddate( $users_first[$name] ) . ' -- ' . $wgLang->timeanddate( $users_last[$name] ) . ') ';
 369+ $s .= ' (' . $wgLang->timeanddate( $users_first[$name], true ) . ' -- ' . $wgLang->timeanddate( $users_last[$name], true ) . ') ';
370370 $s .= ' [<strong>' . $count . '</strong>]<br/>';
371371 # Check if this user or IP is blocked
372372 # If so, give a link to the block log
@@ -504,7 +504,7 @@
505505 $s .= '<li>';
506506 $s .= '<a href="' . $wgTitle->escapeLocalURL( 'user=' . urlencode( $ip ) ) . '">' . $ip . '</a>';
507507 $s .= ' (<a href="' . $blockip->escapeLocalURL( 'ip=' . urlencode( $ip ) ) . '">' . wfMsgHtml('blocklink') . '</a>)';
508 - $s .= ' (' . $wgLang->timeanddate( $ips_first[$ip] ) . ' -- ' . $wgLang->timeanddate( $ips_last[$ip] ) . ') ';
 508+ $s .= ' (' . $wgLang->timeanddate( $ips_first[$ip], true ) . ' -- ' . $wgLang->timeanddate( $ips_last[$ip], true ) . ') ';
509509 $s .= ' <strong>[' . $edits . ']</strong>';
510510 $s .= '</li>';
511511 }

Status & tagging log