Index: trunk/extensions/CheckUser.php |
— | — | @@ -125,8 +125,12 @@ |
126 | 126 | |
127 | 127 | function showLog() { |
128 | 128 | 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>' ); |
131 | 135 | } |
132 | 136 | |
133 | 137 | function addLogEntry( $entry ) { |