Skip to content

Remove "ExtensionRegistry::getInstance()->getAllThings();" #18

@mwjames

Description

@mwjames

[0] adds access to the version number without requiring access to [1]:

$extensionData = ExtensionRegistry::getInstance()->getAllThings();
if ( isset( $extensionData['Semantic Glossary'] ) ) {
	return $extensionData['Semantic Glossary']['version'];
}

[0] https://phabricator.wikimedia.org/T151136
[1] https://github.com/SemanticMediaWiki/SemanticGlossary/blob/master/SemanticGlossary.php#L47-L54

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions