- global $wgCommentTableSchemaMigrationStage, $wgContLang;
- // TODO uncomment once not used in extensions
- // wfDeprecated( __METHOD__, '1.31' );
- $store = new CommentStore( $wgContLang, $wgCommentTableSchemaMigrationStage );
+ global $wgCommentTableSchemaMigrationStage;
+ wfDeprecated( __METHOD__, '1.31' );
+ $store = new CommentStore( MediaWikiServices::getInstance()->getContentLanguage(),
+ $wgCommentTableSchemaMigrationStage );