(bug 26857) Fatal error during installation enabling 'Vector' extension (or any exten...
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 31 Jan 2011 20:00:59 +0000 (20:00 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 31 Jan 2011 20:00:59 +0000 (20:00 +0000)
commit742ea74200dc1711c1312eb184e3f9c59a8db252
tree1c40de03120c500a3e5ae96d26226c381755c00e
parentbc0f9cac32c1fed8c2c7127c1aa37dd415c9c129
(bug 26857) Fatal error during installation enabling 'Vector' extension (or any extension, really). The reason we're including extensions during setup is so they have a chance to register with LoadExtensionSchemaUpdates. Before including extensions, we now include DefaultSettings.php, so any operations on those variables won't result in the fatals described in the bug.

More importantly, this adds support for installing extension tables *at* install time. Previously, the best we could do was to add the require()s to LocalSettings. However, without a subsequent update, wikis will probably start having errors immediately after install (this is really bad!). So I've added an interface to the DatabaseUpdater passed to LoadExtensionSchemaUpdates. An extension can now call addNewExtension() which will allow the extension to be enabled on install and not just update. Example committed in CodeReview
includes/installer/DatabaseInstaller.php
includes/installer/DatabaseUpdater.php
includes/installer/Installer.i18n.php
includes/installer/Installer.php