User constructor does not take an argument

User object without argument is the anon default

Change-Id: I2c47c4865386d59f14eb6390b3e12fb9c5198ccd
This commit is contained in:
Umherirrender 2018-08-06 23:12:26 +02:00
parent eab15dfe42
commit add3e27461

View file

@ -228,7 +228,7 @@ class ApiQueryExtracts extends ApiQueryBase {
private function parse( WikiPage $page ) {
$apiException = null;
if ( !$this->parserOptions ) {
$this->parserOptions = new ParserOptions( new User( '127.0.0.1' ) );
$this->parserOptions = new ParserOptions( new User() );
if ( is_callable( [ $this->parserOptions, 'setWrapOutputClass' ] ) &&
!defined( 'ParserOutput::SUPPORTS_UNWRAP_TRANSFORM' )
) {