From 0262475e0ed13b20d64f11286f021a559b1a8a8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 16 Jun 2007 16:45:36 +0000 Subject: [PATCH] * Group log output by date * Use "all-logs-page" instead of "logs" for page which combines all logs --- RELEASE-NOTES | 1 + includes/DefaultSettings.php | 2 +- includes/SpecialLog.php | 22 +++++++++++++++++----- languages/messages/MessagesEn.php | 1 + 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 062fc303a2..cf52d8685f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -85,6 +85,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8458) Limit custom signature length to $wgMaxSigChars bytes * (bug 10096) Added an ability to query interwiki map table * On reupload, add a null revision to the image description page +* Group log output by date == Bugfixes since 1.10 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0ecd8a00e1..253a87c1ed 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2181,7 +2181,7 @@ $wgLogTypes = array( '', * Extensions with custom log types may add to this array. */ $wgLogNames = array( - '' => 'log', + '' => 'all-logs-page', 'block' => 'blocklogpage', 'protect' => 'protectlogpage', 'rights' => 'rightslog', diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index f2400fefb1..0da3955ff1 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -322,13 +322,25 @@ class LogViewer { } function doShowList( &$out, $result ) { + global $wgLang; + + $lastdate = ''; + $listopen = false; // Rewind result pointer and go through it again, making the HTML - $html = "\n\n"; + if ( $listopen ) { $html .= Xml::closeElement( 'ul' ); } $out->addHTML( $html ); $result->free(); } @@ -346,7 +358,7 @@ class LogViewer { global $wgLang, $wgUser;; $skin = $wgUser->getSkin(); $title = Title::makeTitle( $s->log_namespace, $s->log_title ); - $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $s->log_timestamp), true ); + $time = $wgLang->time( wfTimestamp(TS_MW, $s->log_timestamp), true ); // Enter the existence or non-existence of this page into the link cache, // for faster makeLinkObj() in LogPage::actionText() @@ -397,7 +409,7 @@ class LogViewer { } $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true ); - $out = "
  • $time $userLink $action $comment $revert
  • \n"; + $out = "$time $userLink $action $comment $revert"; return $out; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 9c29d25500..7789ff7aba 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1628,6 +1628,7 @@ further information about books you are looking for:', 'specialloguserlabel' => 'User:', 'speciallogtitlelabel' => 'Title:', 'log' => 'Logs', +'all-logs-page' => 'All logs', 'log-search-legend' => 'Search for logs', 'log-search-submit' => 'Go', 'alllogstext' => 'Combined display of all available logs of {{SITENAME}}. -- 2.20.1