| Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php |
| — | — | @@ -250,6 +250,8 @@ |
| 251 | 251 | * @return string HTML |
| 252 | 252 | */ |
| 253 | 253 | protected static function getHiddenFooter( $feedbackItem, $mode ) { |
| | 254 | + global $wgLang, $wgUser; |
| | 255 | + |
| 254 | 256 | $id = $feedbackItem->getProperty('id'); |
| 255 | 257 | $permalinkTitle = SpecialPage::getTitleFor( 'FeedbackDashboard', $id ); |
| 256 | 258 | if ( $mode === 'shown' ) { |
| — | — | @@ -260,8 +262,11 @@ |
| 261 | 263 | $link = Xml::tags( 'span', array( 'class' => 'fbd-item-restore' ), "($link)" ); |
| 262 | 264 | |
| 263 | 265 | $feedback_hidden_detail = self::getFeedbackHiddenDetail($id); |
| | 266 | + $timestamp = wfTimestamp( TS_DB, $feedback_hidden_detail->log_timestamp ); |
| | 267 | + |
| 264 | 268 | $footer = wfMessage('moodbar-hidden-footer')->rawParams( array( htmlspecialchars( $feedback_hidden_detail->log_user_text ), |
| 265 | | - wfTimestamp( TS_DB, $feedback_hidden_detail->log_timestamp ), |
| | 269 | + $wgLang->userDate($timestamp, $wgUser), |
| | 270 | + $wgLang->userTime($timestamp, $wgUser), |
| 266 | 271 | htmlspecialchars( $feedback_hidden_detail->log_comment ), |
| 267 | 272 | $link ) )->escaped(); |
| 268 | 273 | return Xml::tags( 'div', array( 'class' => 'error' ), $footer ); |
| Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
| — | — | @@ -94,7 +94,7 @@ |
| 95 | 95 | 'moodbar-comment-hidden' => '(Feedback hidden by administrative action)', |
| 96 | 96 | 'moodbar-feedback-show' => 'show hidden feedback', |
| 97 | 97 | 'moodbar-feedback-hide' => 'hide feedback', |
| 98 | | - 'moodbar-hidden-footer' => 'Hidden Feedback by $1 on $2, reason: $3 $4', |
| | 98 | + 'moodbar-hidden-footer' => 'Hidden Feedback by $1 on $2 $3, reason: $4 $5', |
| 99 | 99 | 'moodbar-feedback-restore' => 'restore hidden feedback', |
| 100 | 100 | 'moodbar-action-item' => 'Feedback item:', |
| 101 | 101 | 'moodbar-action-reason' => 'Reason:', |
| — | — | @@ -273,7 +273,7 @@ |
| 274 | 274 | {{Identical|More}}', |
| 275 | 275 | 'moodbar-feedback-newer' => 'Text of the link that the user can click to go back to more recent results. Only visible if JavaScript is not enabled.', |
| 276 | 276 | 'moodbar-feedback-older' => 'Text of the link that the user can click to see less recent results. Only visible if JavaScript is not enabled.', |
| 277 | | - 'moodbar-hidden-footer' => '* $1 is the username, $2 is the time stamp, $3 is the reason for hiding the feedback,$4 is a link to restore the item displaying {{msg-mw|moodbar-feedback-restore}}', |
| | 277 | + 'moodbar-hidden-footer' => '* $1 is the username, $2 is the date, $3 is the time, $4 is the reason for hiding the feedback,$5 is a link to restore the item displaying {{msg-mw|moodbar-feedback-restore}}', |
| 278 | 278 | 'moodbar-type-happy' => '$1 is the username that can be used for GENDER', |
| 279 | 279 | 'moodbar-type-sad' => '$1 is the username that can be used for GENDER', |
| 280 | 280 | 'moodbar-type-confused' => '$1 is the username that can be used for GENDER', |