Topic on Project:Support desk

extension.json or $wgAvailableRights?

2
Siams PS (talkcontribs)

Is it preferred to add additional rights defined in an extension via extension.json or via $wgAvailableRights? The extension.json mentions the $wgAvailableRights variable, but doesn't explicitly state which method would be better.

In fact, a lot of the things defined in extension.json have $wg variable equivalents - is there a preferred method, or is it up to developer discretion as long as it's consistent?

Ciencia Al Poder (talkcontribs)

They should be defined in extension.json, since this provides a centralized metadata repository that can be used to easily update the extension's page with this information.