Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -322,25 +322,13 @@ |
323 | 323 | } |
324 | 324 | |
325 | 325 | function doShowList( &$out, $result ) { |
326 | | - global $wgLang; |
327 | | - |
328 | | - $lastdate = ''; |
329 | | - $listopen = false; |
330 | 326 | // Rewind result pointer and go through it again, making the HTML |
331 | | - $html = ''; |
| 327 | + $html = "\n<ul>\n"; |
332 | 328 | $result->seek( 0 ); |
333 | 329 | while( $s = $result->fetchObject() ) { |
334 | | - $date = $wgLang->date( $s->log_timestamp, /* adj */ true ); |
335 | | - if ( $date != $lastdate ) { |
336 | | - if ( $listopen ) { $html .= Xml::closeElement( 'ul' ); } |
337 | | - $html .= Xml::element('h4', null, $date) . "\n"; |
338 | | - $html .= Xml::openElement( 'ul' ); |
339 | | - $listopen = true; |
340 | | - $lastdate = $date; |
341 | | - } |
342 | | - $html .= Xml::tags('li', null, $this->logLine( $s ) ) . "\n"; |
| 330 | + $html .= $this->logLine( $s ); |
343 | 331 | } |
344 | | - if ( $listopen ) { $html .= Xml::closeElement( 'ul' ); } |
| 332 | + $html .= "\n</ul>\n"; |
345 | 333 | $out->addHTML( $html ); |
346 | 334 | $result->free(); |
347 | 335 | } |
— | — | @@ -358,7 +346,7 @@ |
359 | 347 | global $wgLang, $wgUser;; |
360 | 348 | $skin = $wgUser->getSkin(); |
361 | 349 | $title = Title::makeTitle( $s->log_namespace, $s->log_title ); |
362 | | - $time = $wgLang->time( wfTimestamp(TS_MW, $s->log_timestamp), true ); |
| 350 | + $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $s->log_timestamp), true ); |
363 | 351 | |
364 | 352 | // Enter the existence or non-existence of this page into the link cache, |
365 | 353 | // for faster makeLinkObj() in LogPage::actionText() |
— | — | @@ -412,7 +400,7 @@ |
413 | 401 | } |
414 | 402 | |
415 | 403 | $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true ); |
416 | | - $out = "$time $userLink $action $comment $revert"; |
| 404 | + $out = "<li>$time $userLink $action $comment $revert</li>\n"; |
417 | 405 | return $out; |
418 | 406 | } |
419 | 407 | |