Skip to content

Commit 1ec0a7e

Browse files
committed
Drop compat code for pre-MW-36
1 parent 1afab38 commit 1ec0a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presentation/WikitextParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function wikitextToHtml( string $text ): string {
2323
return $this->parser->parse(
2424
$text,
2525
$this->parser->getTitle(),
26-
new ParserOptions( method_exists( $this->parser, 'getUserIdentity' ) ? $this->parser->getUserIdentity() : $this->parser->getUser() )
26+
new ParserOptions( $this->parser->getUserIdentity() )
2727
)->getText();
2828
}
2929

0 commit comments

Comments
 (0)