mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 10:29:11 +00:00
Merge "Revert "CommentFormatter: Switch from deprecated addJsConfigVars to new setJsConfigVar""
This commit is contained in:
commit
ccb4ad5c7a
|
@ -420,8 +420,9 @@ class CommentFormatter {
|
|||
|
||||
// Temporary hack to deal with T351461#9358034: this should be a
|
||||
// call to `setJsConfigVar` but Parsoid is currently reprocessing
|
||||
// content from extensions.
|
||||
$pout->setJsConfigVar( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
||||
// content from extensions. (T372592)
|
||||
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
|
||||
@$pout->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
||||
|
||||
// Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with
|
||||
// ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)
|
||||
|
|
Loading…
Reference in a new issue