r23148 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23147‎ | r23148 | r23149 >
Date:23:12, 20 June 2007
Author:david
Status:old
Tags:
Comment:
Proper date format in footers.
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -353,6 +353,8 @@
354354 }
355355
356356 function showThreadFooter( $thread ) {
 357+ global $wgLang; // TODO global.
 358+
357359 $color_number = $this->selectNewUserColor( $thread->root()->originalAuthor() );
358360 $this->output->addHTML(wfOpenElement('ul', array('class'=>"lqt_footer" )));
359361
@@ -362,8 +364,7 @@
363365 $this->output->addHTML( wfCloseElement( 'li' ) );
364366
365367 $this->output->addHTML( wfOpenElement( 'li' ) );
366 - $d = new Date($thread->timestamp());
367 - $this->output->addHTML( $d->lastMonth()->text() );
 368+ $this->output->addHTML( $wgLang->timeanddate($thread->timestamp()) );
368369 $this->output->addHTML( wfCloseElement( 'li' ) );
369370
370371 $commands = array( 'Edit' => $this->talkpageUrl( $this->title, 'edit', $thread ),

Status & tagging log