<?php
+use MediaWiki\MediaWikiServices;
use Wikimedia\ScopedCallback;
use Wikimedia\TestingAccessWrapper;
* @return CommentStore
*/
protected function makeStore( $stage ) {
- global $wgContLang;
- $store = new CommentStore( $wgContLang, $stage );
+ $store = new CommentStore( MediaWikiServices::getInstance()->getContentLanguage(), $stage );
return $store;
}