mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Stop using deprecated Language methods
Change-Id: Ibcb9cf30dd6e7a496a6cbe6ceab871a4405e0642
This commit is contained in:
parent
4ef426aa1f
commit
7acc45f672
|
@ -81,7 +81,9 @@ class ApiCategoryTree extends ApiBase {
|
|||
* @return string HTML
|
||||
*/
|
||||
private function getHTML( CategoryTree $ct, Title $title, $depth, Config $ctConfig ) {
|
||||
$cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
|
||||
$services = MediaWikiServices::getInstance();
|
||||
$cache = $services->getMainWANObjectCache();
|
||||
$langConv = $services->getLanguageConverterFactory()->getLanguageConverter();
|
||||
|
||||
return $cache->getWithSetCallback(
|
||||
$cache->makeKey(
|
||||
|
@ -89,7 +91,7 @@ class ApiCategoryTree extends ApiBase {
|
|||
md5( $title->getDBkey() ),
|
||||
md5( $ct->getOptionsAsCacheKey( $depth ) ),
|
||||
$this->getLanguage()->getCode(),
|
||||
MediaWikiServices::getInstance()->getContentLanguage()->getExtraHashOptions(),
|
||||
$langConv->getExtraHashOptions(),
|
||||
$ctConfig->get( 'RenderHashAppend' )
|
||||
),
|
||||
$cache::TTL_DAY,
|
||||
|
|
Loading…
Reference in a new issue