mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 10:29:11 +00:00
Remove checks for missing title info in ParserOutput extensiondata
This data was added to core in I328f533e6cdb11c0c3a873d23bab1a113dfa39be and it will have been in production for 4 weeks next week which is enough for all content to have rolled over. Change-Id: I3d568eed56446f26aa329bfa554d609b8bcb973a
This commit is contained in:
parent
d004c001be
commit
8671171b35
|
@ -99,16 +99,11 @@ class ParserHooks implements
|
|||
// (and leave the onParserAfterTidy handler for legacy HTML).
|
||||
if ( PageBundleParserOutputConverter::hasPageBundle( $parserOutput ) ) {
|
||||
$titleDbKey = $parserOutput->getExtensionData( ParsoidParser::PARSOID_TITLE_KEY );
|
||||
// (Temporary) This extension data won't be available till the ParserCache
|
||||
// content rolls over (after the core patch that sets this data rides the train).
|
||||
if ( $titleDbKey ) {
|
||||
$title = Title::newFromDBkey( $titleDbKey );
|
||||
if ( $title ) {
|
||||
'@phan-var Title $title';
|
||||
$this->transformHtml( $parserOutput, $text, $title, $isPreview );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ParserAfterTidy
|
||||
|
|
Loading…
Reference in a new issue