r106828 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106827‎ | r106828 | r106829 >
Date:18:09, 20 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix casing of Language::timeanddate calls
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -1001,7 +1001,7 @@
10021002 $row .= "<td $selected style='white-space: nowrap;'>";
10031003 if ( !$file->userCan( File::DELETED_FILE ) ) {
10041004 # Don't link to unviewable files
1005 - $row .= '<span class="history-deleted">' . $wgLang->timeAndDate( $timestamp, true ) . '</span>';
 1005+ $row .= '<span class="history-deleted">' . $wgLang->timeanddate( $timestamp, true ) . '</span>';
10061006 } elseif ( $file->isDeleted( File::DELETED_FILE ) ) {
10071007 if ( $local ) {
10081008 $this->preventClickjacking();
@@ -1009,7 +1009,7 @@
10101010 # Make a link to review the image
10111011 $url = Linker::link(
10121012 $revdel,
1013 - $wgLang->timeAndDate( $timestamp, true ),
 1013+ $wgLang->timeanddate( $timestamp, true ),
10141014 array(),
10151015 array(
10161016 'target' => $this->title->getPrefixedText(),
@@ -1019,12 +1019,12 @@
10201020 array( 'known', 'noclasses' )
10211021 );
10221022 } else {
1023 - $url = $wgLang->timeAndDate( $timestamp, true );
 1023+ $url = $wgLang->timeanddate( $timestamp, true );
10241024 }
10251025 $row .= '<span class="history-deleted">' . $url . '</span>';
10261026 } else {
10271027 $url = $iscur ? $this->current->getUrl() : $this->current->getArchiveUrl( $img );
1028 - $row .= Xml::element( 'a', array( 'href' => $url ), $wgLang->timeAndDate( $timestamp, true ) );
 1028+ $row .= Xml::element( 'a', array( 'href' => $url ), $wgLang->timeanddate( $timestamp, true ) );
10291029 }
10301030 $row .= "</td>";
10311031
@@ -1085,7 +1085,7 @@
10861086 $thumbnail = $file->transform( $params );
10871087 $options = array(
10881088 'alt' => wfMsg( 'filehist-thumbtext',
1089 - $wgLang->timeAndDate( $timestamp, true ),
 1089+ $wgLang->timeanddate( $timestamp, true ),
10901090 $wgLang->date( $timestamp, true ),
10911091 $wgLang->time( $timestamp, true ) ),
10921092 'file-link' => true,

Status & tagging log