Merge "Fix TODO about ParsoidClient::getPageHtml() params"

This commit is contained in:
jenkins-bot 2022-09-27 10:43:00 +00:00 committed by Gerrit Code Review
commit adc3344f5f

View file

@ -98,8 +98,7 @@ class HookUtils {
$title = TitleValue::newFromPage( $revRecord->getPage() );
// Get HTML for the revision
// TODO Can we just use `null` for the second parameter?
$response = $parsoidClient->getPageHtml( $revRecord, Title::castFromLinkTarget( $title )->getPageLanguage() );
$response = $parsoidClient->getPageHtml( $revRecord, null );
if ( !empty( $response['error'] ) ) {
$message = wfMessage( ...$response['error'] );