Page MenuHomePhabricator

Databse updater should be registered through the extension itself not through a hook in mediawiki
Open, Needs TriagePublic

Description

To improve database updater please see some suggestions by @daniel Kinzler. His suggestion is to instead of using a hook in mediawiki to get the database updater working why not register the hook in the extension or skin itself. It would fix using $GLOBALS.

But things to make sure with this is to make sure it works both in the main php file or extension.json.

Event Timeline

Paladox raised the priority of this task from to Needs Triage.
Paladox updated the task description. (Show Details)
Paladox added subscribers: Paladox, daniel, Legoktm.

From looking at the code it seems like DatabaseUpdates are somehow extracted from the normal hook registry. If we need them separate, they should be registered separately in extension.json, instead of using the generic hook interface.