mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
FIX Use HTMLValue::class
This commit is contained in:
parent
fc8f9d55c7
commit
8456e46f83
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user