From dfbec4385b8bdf6e2ef7554898d80abfadfc191a Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 20 Dec 2011 18:09:21 +0000 Subject: [PATCH] Fix casing of Language::timeanddate calls --- includes/ImagePage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index e836104035..a44a7d353d 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -1001,7 +1001,7 @@ class ImageHistoryList { $row .= ""; if ( !$file->userCan( File::DELETED_FILE ) ) { # Don't link to unviewable files - $row .= '' . $wgLang->timeAndDate( $timestamp, true ) . ''; + $row .= '' . $wgLang->timeanddate( $timestamp, true ) . ''; } elseif ( $file->isDeleted( File::DELETED_FILE ) ) { if ( $local ) { $this->preventClickjacking(); @@ -1009,7 +1009,7 @@ class ImageHistoryList { # Make a link to review the image $url = Linker::link( $revdel, - $wgLang->timeAndDate( $timestamp, true ), + $wgLang->timeanddate( $timestamp, true ), array(), array( 'target' => $this->title->getPrefixedText(), @@ -1019,12 +1019,12 @@ class ImageHistoryList { array( 'known', 'noclasses' ) ); } else { - $url = $wgLang->timeAndDate( $timestamp, true ); + $url = $wgLang->timeanddate( $timestamp, true ); } $row .= '' . $url . ''; } else { $url = $iscur ? $this->current->getUrl() : $this->current->getArchiveUrl( $img ); - $row .= Xml::element( 'a', array( 'href' => $url ), $wgLang->timeAndDate( $timestamp, true ) ); + $row .= Xml::element( 'a', array( 'href' => $url ), $wgLang->timeanddate( $timestamp, true ) ); } $row .= ""; @@ -1085,7 +1085,7 @@ class ImageHistoryList { $thumbnail = $file->transform( $params ); $options = array( 'alt' => wfMsg( 'filehist-thumbtext', - $wgLang->timeAndDate( $timestamp, true ), + $wgLang->timeanddate( $timestamp, true ), $wgLang->date( $timestamp, true ), $wgLang->time( $timestamp, true ) ), 'file-link' => true, -- 2.20.1