- $wgParser->startExternalParse( $titleObj, $options, Parser::OT_PREPROCESS );
- $frame = $wgParser->getPreprocessor()->newFrame();
- $wikitext = $wgParser->preprocess( $params['text'], $titleObj, $options, $revid, $frame );
+ $parser->startExternalParse( $titleObj, $options, Parser::OT_PREPROCESS );
+ $frame = $parser->getPreprocessor()->newFrame();
+ $wikitext = $parser->preprocess( $params['text'], $titleObj, $options, $revid, $frame );