From 22f68e708c9849716e9ea07c99871f5e39627d16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 10 Jul 2008 08:33:50 +0000 Subject: [PATCH] * Why on earth is this using content language --- includes/specials/SpecialRevisiondelete.php | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index c171b4f486..9d2dcaa423 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -534,9 +534,9 @@ class RevisionDeleteForm { * @returns string */ private function historyLine( $rev ) { - global $wgContLang; + global $wgLang; - $date = $wgContLang->timeanddate( $rev->getTimestamp() ); + $date = $wgLang->timeanddate( $rev->getTimestamp() ); $difflink = $del = ''; // Live revisions if( $this->deleteKey=='oldid' ) { @@ -570,10 +570,10 @@ class RevisionDeleteForm { * @returns string */ private function fileLine( $file ) { - global $wgContLang, $wgTitle; + global $wgLang, $wgTitle; $target = $this->page->getPrefixedText(); - $date = $wgContLang->timeanddate( $file->getTimestamp(), true ); + $date = $wgLang->timeanddate( $file->getTimestamp(), true ); $del = ''; # Hidden files... @@ -593,9 +593,9 @@ class RevisionDeleteForm { } $data = wfMsg( 'widthheight', - $wgContLang->formatNum( $file->getWidth() ), - $wgContLang->formatNum( $file->getHeight() ) ) . - ' (' . wfMsg( 'nbytes', $wgContLang->formatNum( $file->getSize() ) ) . ')'; + $wgLang->formatNum( $file->getWidth() ), + $wgLang->formatNum( $file->getHeight() ) ) . + ' (' . wfMsg( 'nbytes', $wgLang->formatNum( $file->getSize() ) ) . ')'; $data = htmlspecialchars( $data ); return "
  • $pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del
  • "; @@ -606,10 +606,10 @@ class RevisionDeleteForm { * @returns string */ private function archivedfileLine( $file ) { - global $wgContLang, $wgTitle; + global $wgLang, $wgTitle; $target = $this->page->getPrefixedText(); - $date = $wgContLang->timeanddate( $file->getTimestamp(), true ); + $date = $wgLang->timeanddate( $file->getTimestamp(), true ); $undelete = SpecialPage::getTitleFor( 'Undelete' ); $pageLink = $this->skin->makeKnownLinkObj( $undelete, $date, "target=$target&file={$file->getKey()}" ); @@ -620,9 +620,9 @@ class RevisionDeleteForm { } $data = wfMsg( 'widthheight', - $wgContLang->formatNum( $file->getWidth() ), - $wgContLang->formatNum( $file->getHeight() ) ) . - ' (' . wfMsg( 'nbytes', $wgContLang->formatNum( $file->getSize() ) ) . ')'; + $wgLang->formatNum( $file->getWidth() ), + $wgLang->formatNum( $file->getHeight() ) ) . + ' (' . wfMsg( 'nbytes', $wgLang->formatNum( $file->getSize() ) ) . ')'; $data = htmlspecialchars( $data ); return "
  • $pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del
  • "; @@ -633,9 +633,9 @@ class RevisionDeleteForm { * @returns string */ private function logLine( $row ) { - global $wgContLang; + global $wgLang; - $date = $wgContLang->timeanddate( $row->log_timestamp ); + $date = $wgLang->timeanddate( $row->log_timestamp ); $paramArray = LogPage::extractParams( $row->log_params ); $title = Title::makeTitle( $row->log_namespace, $row->log_title ); @@ -657,7 +657,7 @@ class RevisionDeleteForm { $userLink = '' . $userLink . ''; } // Comment - $comment = $wgContLang->getDirMark() . $this->skin->commentBlock( $row->log_comment ); + $comment = $wgLang->getDirMark() . $this->skin->commentBlock( $row->log_comment ); if( LogEventsList::isDeleted($row,LogPage::DELETED_COMMENT) ) { $comment = '' . $comment . ''; } -- 2.20.1