dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mass conversion of $wgContLang to service
[lhc/web/wiklou.git]
/
includes
/
page
/
ImageHistoryList.php
diff --git
a/includes/page/ImageHistoryList.php
b/includes/page/ImageHistoryList.php
index
bb8ed24
..
1f87d93
100644
(file)
--- a/
includes/page/ImageHistoryList.php
+++ b/
includes/page/ImageHistoryList.php
@@
-18,6
+18,8
@@
* @file
*/
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Builds the image revision log shown on image pages
*
/**
* Builds the image revision log shown on image pages
*
@@
-111,8
+113,6
@@
class ImageHistoryList extends ContextSource {
* @return string
*/
public function imageHistoryLine( $iscur, $file ) {
* @return string
*/
public function imageHistoryLine( $iscur, $file ) {
- global $wgContLang;
-
$user = $this->getUser();
$lang = $this->getLanguage();
$timestamp = wfTimestamp( TS_MW, $file->getTimestamp() );
$user = $this->getUser();
$lang = $this->getLanguage();
$timestamp = wfTimestamp( TS_MW, $file->getTimestamp() );
@@
-264,8
+264,9
@@
class ImageHistoryList extends ContextSource {
$row .= '<td><span class="history-deleted">' .
$this->msg( 'rev-deleted-comment' )->escaped() . '</span></td>';
} else {
$row .= '<td><span class="history-deleted">' .
$this->msg( 'rev-deleted-comment' )->escaped() . '</span></td>';
} else {
- $row .= '<td dir="' . $wgContLang->getDir() . '">' .
- Linker::formatComment( $description, $this->title ) . '</td>';
+ $row .=
+ '<td dir="' . MediaWikiServices::getInstance()->getContentLanguage()->getDir() .
+ '">' . Linker::formatComment( $description, $this->title ) . '</td>';
}
$rowClass = null;
}
$rowClass = null;