mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-23 15:56:52 +00:00
User constructor does not take an argument
User object without argument is the anon default Change-Id: I2c47c4865386d59f14eb6390b3e12fb9c5198ccd
This commit is contained in:
parent
eab15dfe42
commit
add3e27461
|
@ -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' )
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue