r12347 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12346‎ | r12347 | r12348 >
Date:06:06, 2 January 2006
Author:robchurch
Status:old
Tags:
Comment:
Reverse order in which log items appear
Modified paths:
  • /trunk/extensions/CheckUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser.php
@@ -125,8 +125,12 @@
126126
127127 function showLog() {
128128 global $wgOut, $wgCheckUserLog;
129 -
130 - $wgOut->addHTML( '<ul>' . file_get_contents( $wgCheckUserLog ) . '</ul>' );
 129+ $output = '';
 130+ $log = array_reverse( file( $wgCheckUserLog ) );
 131+ foreach( $log as $log_line ) {
 132+ $output .= $log_line;
 133+ }
 134+ $wgOut->addHTML( '<ul>' . $output . '</ul>' );
131135 }
132136
133137 function addLogEntry( $entry ) {

Status & tagging log