CommentFormatter: Switch from deprecated addJsConfigVars to new setJsConfigVar

Bug: T372193
Change-Id: Ib3ec31ac78aee59325b3b1be3bb66f5c4a73715a
This commit is contained in:
James D. Forrester 2024-08-10 13:51:50 +02:00
parent 573172dfaf
commit fe8526caf2

View file

@ -417,7 +417,7 @@ 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->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON );
$pout->setJsConfigVar( 'wgDiscussionToolsPageThreads', $threadsJSON );
// Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with
// ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)