mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Revert "CommentFormatter: Switch from deprecated addJsConfigVars to new setJsConfigVar"
Silence the deprecation warning instead to avoid regressing T372193.
I filed T372592 about the bigger problem we have here.
This reverts commit fe8526caf2
.
Bug: T372499
Change-Id: I47884f99e9c18fffd22ffdc27f5c61515b60c8f8
This commit is contained in:
parent
fe8526caf2
commit
3ec0789d06
|
@ -416,8 +416,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