mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
CommentFormatter: Switch from deprecated addJsConfigVars to new setJsConfigVar
Bug: T372193 Change-Id: Ib3ec31ac78aee59325b3b1be3bb66f5c4a73715a
This commit is contained in:
parent
573172dfaf
commit
fe8526caf2
|
@ -417,7 +417,7 @@ class CommentFormatter {
|
||||||
// Temporary hack to deal with T351461#9358034: this should be a
|
// Temporary hack to deal with T351461#9358034: this should be a
|
||||||
// call to `setJsConfigVar` but Parsoid is currently reprocessing
|
// call to `setJsConfigVar` but Parsoid is currently reprocessing
|
||||||
// content from extensions.
|
// content from extensions.
|
||||||
$pout->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
$pout->setJsConfigVar( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
||||||
|
|
||||||
// Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with
|
// Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with
|
||||||
// ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)
|
// ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)
|
||||||
|
|
Loading…
Reference in a new issue