ApiParse: Add Skin::getDefaultModules() in useskin mode
Bug: T130632 Change-Id: Idc41934eb89ec8f928bbea3b2135c3f246fe3925
This commit is contained in:
parent
0048c3e255
commit
90c95fc7f2
1 changed files with 7 additions and 0 deletions
|
|
@ -312,6 +312,13 @@ class ApiParse extends ApiBase {
|
|||
$outputPage = new OutputPage( $context );
|
||||
$outputPage->addParserOutputMetadata( $p_result );
|
||||
$context->setOutput( $outputPage );
|
||||
|
||||
if ( $skin ) {
|
||||
// Based on OutputPage::output()
|
||||
foreach ( $skin->getDefaultModules() as $group ) {
|
||||
$outputPage->addModules( $group );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( !is_null( $oldid ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue