From 8456e46f836c4b4265373ec218a41ccd90336b31 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 18 Jan 2023 10:32:39 +1300 Subject: [PATCH] FIX Use HTMLValue::class --- src/Tasks/CheckExternalLinksTask.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tasks/CheckExternalLinksTask.php b/src/Tasks/CheckExternalLinksTask.php index 54e07fa..2203396 100644 --- a/src/Tasks/CheckExternalLinksTask.php +++ b/src/Tasks/CheckExternalLinksTask.php @@ -15,6 +15,7 @@ use SilverStripe\ExternalLinks\Tasks\LinkChecker; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DB; use SilverStripe\ORM\ValidationException; +use SilverStripe\View\Parsers\HTMLValue; class CheckExternalLinksTask extends BuildTask { @@ -181,7 +182,7 @@ class CheckExternalLinksTask extends BuildTask // Check value of html area $page = $pageTrack->Page(); $this->log("Checking {$page->Title}"); - $htmlValue = Injector::inst()->create('HTMLValue', $page->Content); + $htmlValue = Injector::inst()->create(HTMLValue::class, $page->Content); if (!$htmlValue->isValid()) { continue; }