mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Use MainConfigNames
Change-Id: I81eb011f303dbaacc30ee3d8ac27c4a7bf10615a
This commit is contained in:
parent
7b7c051df0
commit
42e31c3054
|
@ -9,6 +9,7 @@ use MediaWiki\Config\Config;
|
|||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Title\Title;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
@ -149,7 +150,7 @@ class ApiCategoryTree extends ApiBase {
|
|||
md5( $ct->optionManager->getOptionsAsCacheKey( $depth ) ),
|
||||
$this->getLanguage()->getCode(),
|
||||
$langConv->getExtraHashOptions(),
|
||||
$ctConfig->get( 'RenderHashAppend' )
|
||||
$ctConfig->get( MainConfigNames::RenderHashAppend )
|
||||
),
|
||||
$this->wanCache::TTL_DAY,
|
||||
static function () use ( $ct, $title, $depth ) {
|
||||
|
|
Loading…
Reference in a new issue