Replace usage of $wgParser
$wgParser is deprecated thus should be replaced in the code.
issue