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
/
specials
/
SpecialWantedcategories.php
diff --git
a/includes/specials/SpecialWantedcategories.php
b/includes/specials/SpecialWantedcategories.php
index
d323c9e
..
2accef6
100644
(file)
--- a/
includes/specials/SpecialWantedcategories.php
+++ b/
includes/specials/SpecialWantedcategories.php
@@
-23,6
+23,8
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A querypage to list the most wanted categories - implements Special:Wantedcategories
*
/**
* A querypage to list the most wanted categories - implements Special:Wantedcategories
*
@@
-88,10
+90,8
@@
class WantedCategoriesPage extends WantedQueryPage {
* @return string
*/
function formatResult( $skin, $result ) {
* @return string
*/
function formatResult( $skin, $result ) {
- global $wgContLang;
-
$nt = Title::makeTitle( $result->namespace, $result->title );
$nt = Title::makeTitle( $result->namespace, $result->title );
- $text =
$wgContLang
->convert( $nt->getText() );
+ $text =
MediaWikiServices::getInstance()->getContentLanguage()
->convert( $nt->getText() );
if ( !$this->isCached() ) {
// We can assume the freshest data
if ( !$this->isCached() ) {
// We can assume the freshest data