r87571 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87570‎ | r87571 | r87572 >
Date:20:39, 6 May 2011
Author:awjrichards
Status:ok
Tags:
Comment:
Followup r87549 now using ->date rather than date() for table titles
Modified paths:
  • /trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php
@@ -15,7 +15,7 @@
1616 }
1717
1818 public function execute( $par ) {
19 - global $wgUser, $wgOut, $wgRequest, $wgArticleFeedbackDashboard;
 19+ global $wgUser, $wgOut, $wgRequest, $wgLang, $wgArticleFeedbackDashboard;
2020
2121 $wgOut->addModules( 'ext.articleFeedback.dashboard' );
2222 $this->setHeaders();
@@ -30,10 +30,10 @@
3131 $lows = $this->getDailyLows( $highs_lows );
3232
3333 //render daily highs table
34 - $this->renderDailyHighsAndLows( $highs, wfMsg( 'articleFeedback-table-caption-dailyhighs', date( 'Y-m-d' )));
 34+ $this->renderDailyHighsAndLows( $highs, wfMsg( 'articleFeedback-table-caption-dailyhighs', $wgLang->date( time() )));
3535
3636 //render daily lows table
37 - $this->renderDailyHighsAndLows( $lows, wfMsg( 'articleFeedback-table-caption-dailylows', date( 'Y-m-d' )));
 37+ $this->renderDailyHighsAndLows( $lows, wfMsg( 'articleFeedback-table-caption-dailylows', $wgLang->date( time() )));
3838
3939 /*
4040 This functionality does not exist yet.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87549Adjusted special page title and table titles per Howie's specsawjrichards16:44, 6 May 2011

Status & tagging log