FIX Use HTMLValue::class

This commit is contained in:
Steve Boyd 2023-01-18 10:32:39 +13:00
parent fc8f9d55c7
commit 8456e46f83

View File

@ -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;
}