}
public function appendExtensionTags( $property ) {
- global $wgParser;
$tags = array_map(
function ( $item ) {
return "<$item>";
},
- $wgParser->getTags()
+ MediaWikiServices::getInstance()->getParser()->getTags()
);
ApiResult::setArrayType( $tags, 'BCarray' );
ApiResult::setIndexedTagName( $tags, 't' );
}
public function appendFunctionHooks( $property ) {
- global $wgParser;
- $hooks = $wgParser->getFunctionHooks();
+ $hooks = MediaWikiServices::getInstance()->getParser()->getFunctionHooks();
ApiResult::setArrayType( $hooks, 'BCarray' );
ApiResult::setIndexedTagName( $hooks, 'h' );