X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpreprocessorFuzzTest.php;h=e57e977511ffecd1af716f6dfbfeb622eeb9f596;hb=fb9b23f4ad52ffec3bd59dfe30acd0527fb04845;hp=d5d27ad8ce9605aaaef2f05dc63baf2f736d2c68;hpb=35f00337816ed66a7ca8bb6eeb5fccf422ee4e1a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php index d5d27ad8ce..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 @@ -239,7 +239,7 @@ class PPFuzzTest { class PPFuzzUser extends User { public $ppfz_test, $mDataLoaded; - function load() { + function load( $flags = null ) { if ( $this->mDataLoaded ) { return; }