Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -322,13 +322,25 @@ |
323 | 323 | } |
324 | 324 | |
325 | 325 | function doShowList( &$out, $result ) { |
| 326 | + global $wgLang; |
| 327 | + |
| 328 | + $lastdate = ''; |
| 329 | + $listopen = false; |
326 | 330 | // Rewind result pointer and go through it again, making the HTML |
327 | | - $html = "\n<ul>\n"; |
| 331 | + $html = ''; |
328 | 332 | $result->seek( 0 ); |
329 | 333 | while( $s = $result->fetchObject() ) { |
330 | | - $html .= $this->logLine( $s ); |
| 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"; |
331 | 343 | } |
332 | | - $html .= "\n</ul>\n"; |
| 344 | + if ( $listopen ) { $html .= Xml::closeElement( 'ul' ); } |
333 | 345 | $out->addHTML( $html ); |
334 | 346 | $result->free(); |
335 | 347 | } |
— | — | @@ -346,7 +358,7 @@ |
347 | 359 | global $wgLang, $wgUser;; |
348 | 360 | $skin = $wgUser->getSkin(); |
349 | 361 | $title = Title::makeTitle( $s->log_namespace, $s->log_title ); |
350 | | - $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $s->log_timestamp), true ); |
| 362 | + $time = $wgLang->time( wfTimestamp(TS_MW, $s->log_timestamp), true ); |
351 | 363 | |
352 | 364 | // Enter the existence or non-existence of this page into the link cache, |
353 | 365 | // for faster makeLinkObj() in LogPage::actionText() |
— | — | @@ -397,7 +409,7 @@ |
398 | 410 | } |
399 | 411 | |
400 | 412 | $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true ); |
401 | | - $out = "<li>$time $userLink $action $comment $revert</li>\n"; |
| 413 | + $out = "$time $userLink $action $comment $revert"; |
402 | 414 | return $out; |
403 | 415 | } |
404 | 416 | |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -2181,7 +2181,7 @@ |
2182 | 2182 | * Extensions with custom log types may add to this array. |
2183 | 2183 | */ |
2184 | 2184 | $wgLogNames = array( |
2185 | | - '' => 'log', |
| 2185 | + '' => 'all-logs-page', |
2186 | 2186 | 'block' => 'blocklogpage', |
2187 | 2187 | 'protect' => 'protectlogpage', |
2188 | 2188 | 'rights' => 'rightslog', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1628,6 +1628,7 @@ |
1629 | 1629 | 'specialloguserlabel' => 'User:', |
1630 | 1630 | 'speciallogtitlelabel' => 'Title:', |
1631 | 1631 | 'log' => 'Logs', |
| 1632 | +'all-logs-page' => 'All logs', |
1632 | 1633 | 'log-search-legend' => 'Search for logs', |
1633 | 1634 | 'log-search-submit' => 'Go', |
1634 | 1635 | 'alllogstext' => 'Combined display of all available logs of {{SITENAME}}. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -85,6 +85,7 @@ |
86 | 86 | * (bug 8458) Limit custom signature length to $wgMaxSigChars bytes |
87 | 87 | * (bug 10096) Added an ability to query interwiki map table |
88 | 88 | * On reupload, add a null revision to the image description page |
| 89 | +* Group log output by date |
89 | 90 | |
90 | 91 | == Bugfixes since 1.10 == |
91 | 92 | |