parser: Replace 'new Parser' in favour of using Parser::getFreshParser

Bug: T244055
Change-Id: Ib883d6ca154a01dd8f0ad45bc338e0aa05dee8ac
This commit is contained in:
peter-ovchyn 2020-02-17 19:14:13 +02:00
parent 3d36eb80cf
commit 407c4aefe8

View file

@ -328,7 +328,7 @@ class RSSParser {
* @return string
*/
protected function sandboxParse( $wikiText, $origParser ) {
$myParser = new Parser();
$myParser = $origParser->getFreshParser();
$result = $myParser->parse(
$wikiText,
$origParser->getTitle(),