mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 01:16:19 +00:00
Set 'useskin' when using API action=parse
Bug: T266195 Change-Id: I65c3e71924e0e126cac95088a4c3774cee8e8a72
This commit is contained in:
parent
516361937d
commit
9b965c45b5
|
@ -281,6 +281,9 @@ function update( data, comment, pageName, replyWidget ) {
|
|||
} ).then( function () {
|
||||
return api.get( {
|
||||
action: 'parse',
|
||||
// HACK: 'useskin' triggers a different code path that runs our OutputPageBeforeHTML hook,
|
||||
// adding our reply links in the HTML (T266195)
|
||||
useskin: mw.config.get( 'skin' ),
|
||||
prop: [ 'text', 'modules', 'jsconfigvars' ],
|
||||
page: mw.config.get( 'wgRelevantPageName' )
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue