Unbreak creating extension tables from the web installer
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 11 Apr 2018 03:10:22 +0000 (20:10 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 11 Apr 2018 03:10:22 +0000 (20:10 -0700)
commitad136143c5de92257c4ad5459d3c39186fbf800a
treee55b719fd95e4c9f05a8163037629ace7fd59782
parent25e6d7444365f53e08a49d2437519773d1fb4c3f
Unbreak creating extension tables from the web installer

The web installer loads extensions during
Installer::includeExtensions(), but then
DatabaseUpdater::loadExtensions() reloads them again. Use a constant
(MW_EXTENSIONS_LOADED) to indicate that we shouldn't load them again.

Also fix a minor issue in loadExtensions() that would accidentally
register a bogus yet harmless hook called 'wgHooks'.

Change-Id: Id72fc0ceea15ccea52b1709bef51918ce64f8b40
includes/installer/DatabaseUpdater.php
includes/installer/Installer.php