- global $wgParser;
-
- $text = $this->getNativeData();
- $plt = $wgParser->getPreloadText( $text, $title, $popts, $params );
+ $text = $this->getText();
+ $plt = MediaWikiServices::getInstance()->getParser()
+ ->getPreloadText( $text, $title, $popts, $params );