X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpreprocessorFuzzTest.php;h=e57e977511ffecd1af716f6dfbfeb622eeb9f596;hb=5f89f7040fe987e07d3d2e82049704fb02d73677;hp=8df01e66fb597ff89c6e2b3f37d1838ec91b2899;hpb=a7253aba907dcbb4172cba574bc31bdaf356fa75;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php index 8df01e66fb..e57e977511 100644 --- a/maintenance/preprocessorFuzzTest.php +++ b/maintenance/preprocessorFuzzTest.php @@ -195,7 +195,7 @@ class PPFuzzTest { } function execute() { - global $wgParser, $wgUser; + global $wgUser; $wgUser = new PPFuzzUser; $wgUser->mName = 'Fuzz'; @@ -206,7 +206,7 @@ class PPFuzzTest { $options->setTemplateCallback( [ $this, 'templateHook' ] ); $options->setTimestamp( wfTimestampNow() ); $this->output = call_user_func( - [ $wgParser, $this->entryPoint ], + [ MediaWikiServices::getInstance()->getParser(), $this->entryPoint ], $this->mainText, $this->title, $options