r47847 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47846‎ | r47847 | r47848 >
Date:21:45, 26 February 2009
Author:raymond
Status:resolved (Comments)
Tags:
Comment:
Show the timestemp in users preference timezone
Tweak special page aliases for 'de'
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.alias.php (modified) (history)
  • /trunk/extensions/AbuseFilter/SpecialAbuseLog.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.alias.php
@@ -38,8 +38,8 @@
3939
4040 /** German (Deutsch) */
4141 $aliases['de'] = array(
42 - 'AbuseLog' => array( 'Missbrauchsfilter-Logbuch' ),
43 - 'AbuseFilter' => array( 'Missbrauchsfilter' ),
 42+ 'AbuseLog' => array( 'Missbrauchsfilter-Logbuch', 'Missbrauchfilter-Logbuch' ),
 43+ 'AbuseFilter' => array( 'Missbrauchsfilter', 'Missbrauchfilter' ),
4444 );
4545
4646 /** Lower Sorbian (Dolnoserbski) */
Index: trunk/extensions/AbuseFilter/SpecialAbuseLog.php
@@ -195,8 +195,8 @@
196196
197197 $description = '';
198198
199 - $timestamp = $wgLang->timeanddate( $row->afl_timestamp );
200 -
 199+ $timestamp = $wgLang->timeanddate( $row->afl_timestamp, true );
 200+
201201 $actions_taken = $row->afl_actions;
202202 if ( !strlen( trim( $actions_taken) ) ) {
203203 $actions_taken = wfMsg( 'abusefilter-log-noactions' );
@@ -227,7 +227,7 @@
228228 $description = wfMsgExt( 'abusefilter-log-detailedentry',
229229 array( 'parseinline', 'replaceafter' ),
230230 array(
231 - $timestamp,
 231+ $wgLang->timeanddate( wfTimestamp(TS_MW, $row->log_timestamp), true ),
232232 $user,
233233 $row->afl_filter,
234234 $row->afl_action,

Follow-up revisions

RevisionCommit summaryAuthorDate
r47848Fix for r47847.raymond21:48, 26 February 2009
r48322Follow up r47847: Show the timestemp in users preference timezoneraymond18:58, 11 March 2009

Comments

#Comment by Raymond (talk | contribs)   21:50, 26 February 2009

aaargs... the last line was wrong. Fixed in r47848.

Status & tagging log