Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS
SVN: [37477] trunk/phase3/includes/specials/SpecialRevisiondelete.php
 

Index | Next | Previous | View Flat


nikerabbit at svn

Jul 10, 2008, 1:33 AM


Views: 89
Permalink
SVN: [37477] trunk/phase3/includes/specials/SpecialRevisiondelete.php

Revision: 37477
Author: nikerabbit
Date: 2008-07-10 08:33:50 +0000 (Thu, 10 Jul 2008)

Log Message:
-----------
* Why on earth is this using content language

Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialRevisiondelete.php

Modified: trunk/phase3/includes/specials/SpecialRevisiondelete.php
===================================================================
--- trunk/phase3/includes/specials/SpecialRevisiondelete.php 2008-07-10 08:32:34 UTC (rev 37476)
+++ trunk/phase3/includes/specials/SpecialRevisiondelete.php 2008-07-10 08:33:50 UTC (rev 37477)
@@ -534,9 +534,9 @@
* @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 @@
* @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 @@
}

$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 "<li>$pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del</li>";
@@ -606,10 +606,10 @@
* @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 @@
}

$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 "<li> $pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del</li>";
@@ -633,9 +633,9 @@
* @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 @@
$userLink = '<span class="history-deleted">' . $userLink . '</span>';
}
// 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 = '<span class="history-deleted">' . $comment . '</span>';
}



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Subject User Time
SVN: [37477] trunk/phase3/includes/specials/SpecialRevisiondelete.php nikerabbit at svn Jul 10, 2008, 1:33 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.