Read extension.json files in the web updater
authorKunal Mehta <legoktm@gmail.com>
Mon, 8 Jun 2015 00:04:07 +0000 (17:04 -0700)
committerMarkAHershberger <mah@nichework.com>
Sat, 25 Jul 2015 22:32:27 +0000 (22:32 +0000)
commit648ef0d8687ce3efc404225263aa10ca45c244a5
tree921928e961fb4e410e8276a558a8d4f9ec8fe9f0
parent57ebeeaf10a889e57040789dbf42e6fe5f6db1f4
Read extension.json files in the web updater

The web updater reads LocalSettings.php in function scope to figure out
what extensions have been loaded. This doesn't work for extensions being
loaded through the ExtensionRegistry since they're only added to a
queue.

This adds the ability for the installer to read and get information from
the current extension load queue. LocalSettings.php is still read for
extensions that have not been converted yet.

Other uses of Installer::getExistingLocalSettings() were audited and
determined to be safe with regards to extension usage.

Extensions that register hooks using explicit globals
($GLOBALS['wgHooks']['FooBar']) are still broken.

Bug: T100414
Change-Id: Icc574a38a7947a1e3aff8622a4889e9dcfd7a4b2
includes/installer/DatabaseUpdater.php
includes/registration/ExtensionRegistry.php