dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
646476a
)
Merge "ApiParse: Add Skin::getDefaultModules() in useskin mode"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 23 May 2017 18:42:40 +0000
(18:42 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 23 May 2017 18:42:40 +0000
(18:42 +0000)
includes/api/ApiParse.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiParse.php
b/includes/api/ApiParse.php
index
b36127d
..
d09978e
100644
(file)
--- a/
includes/api/ApiParse.php
+++ b/
includes/api/ApiParse.php
@@
-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 ) ) {