mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Revert "ParserOutputPostCacheTransform: Don't reprocess content"
This reverts commit 5b2142b9c7
.
Reason for revert: This didn't fix the problem at all and actually made it slightly worse. Earlier the 'latest comment' metadata would be displayed but the page itself wouldn't get processed. Now, that metadata is also gone! :-)
Change-Id: I2644ffbbdabccb99ae40348a52b19b1060118ae1
This commit is contained in:
parent
5b2142b9c7
commit
be50a4c0ca
|
@ -86,12 +86,6 @@ class ParserHooks implements
|
|||
* @inheritDoc
|
||||
*/
|
||||
public function onParserOutputPostCacheTransform( $parserOutput, &$text, &$options ): void {
|
||||
if ( $parserOutput->getExtensionData( 'DiscussionTools-tocInfo' ) !== null ) {
|
||||
// Since getText() could be called multiple times, return if we have
|
||||
// already processed this ParserOutput object
|
||||
return;
|
||||
}
|
||||
|
||||
// NOTE: This is a temporary proxy for 'isPreview' flag in ParserOptions.
|
||||
// It is not clear whether 'editsectionEditLinks' is disabled only for previews.
|
||||
$isPreview = empty( $options['enableSectionEditLinks'] );
|
||||
|
|
Loading…
Reference in a new issue