From 443e67c5c1d5be110b208eb11ab48642dde2328c Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Wed, 5 Jun 2024 12:22:11 -0400 Subject: [PATCH] Remove use of deprecated HtmlOutputRendererHelper::init() method Depends-On: I1e1213597c6be012f2bc024c2b370c968ff3b472 Change-Id: Id63d93db801d0bfb3fdb4c69bf7dfeea4e68ea8f --- includes/DirectParsoidClient.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/DirectParsoidClient.php b/includes/DirectParsoidClient.php index 2d7f081ce1..d16a1876dc 100644 --- a/includes/DirectParsoidClient.php +++ b/includes/DirectParsoidClient.php @@ -52,8 +52,6 @@ class DirectParsoidClient implements ParsoidClient { bool $stash = false, string $flavor = self::FLAVOR_DEFAULT ): HtmlOutputRendererHelper { - $helper = $this->helperFactory->newHtmlOutputRendererHelper(); - // TODO: remove this once we no longer need a User object for rate limiting (T310476). if ( $this->performer instanceof User ) { $user = $this->performer; @@ -61,7 +59,7 @@ class DirectParsoidClient implements ParsoidClient { $user = User::newFromIdentity( $this->performer->getUser() ); } - $helper->init( $page, [], $user, $revision ); + $helper = $this->helperFactory->newHtmlOutputRendererHelper( $page, [], $user, $revision ); // Ensure we get a compatible version, not just the default $helper->setOutputProfileVersion( self::PARSOID_VERSION );