mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Merge "Fix TODO about ParsoidClient::getPageHtml() params"
This commit is contained in:
commit
adc3344f5f
|
@ -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'] );
|
||||
|
|
Loading…
Reference in a new issue