OutputPage: Move hardcoded default modules to Skin::getDefaultModules
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 20 May 2017 13:07:37 +0000 (15:07 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 21 May 2017 17:06:43 +0000 (19:06 +0200)
commit0048c3e255be034a5ad3d19ea73ee9271642ff53
tree426c6d6afa5016e2f93374e778272d0c59d4a85c
parent5c249f53c013d705ec1f998c3f309c392eae574e
OutputPage: Move hardcoded default modules to Skin::getDefaultModules

These modules should not be hardcoded in OutputPage::output() which
makes them impossible to override and also very hard to retrieve
through the API for action=parse. Move these instead to Skin which
is where all other default module loading happens already.

Moving these modules is in preparation for customising ApiParse
to support "really" returning all would-be loaded modules on a page
when setting 'useskin', which is also needed for Live Preview
and in theory for ajax navigation and other scenarios where there
is a delay between the "initial" page rendering, and a later re-render
which may not have all all the necessary modules.

Bug: T130632
Change-Id: Ic4afccf0cd0d428d7fbc36d4e747415af3ab49f5
includes/OutputPage.php
includes/skins/Skin.php