Skip to content

Commit

Permalink
FIX Don't refer to removed class
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 26, 2023
1 parent bfed1ab commit c552d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/ElementalPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use DNADesign\Elemental\Models\ElementalArea;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Control\Controller;
use SilverStripe\View\Parsers\HTML4Value;
use SilverStripe\View\Parsers\HTMLValue;
use SilverStripe\View\SSViewer;

/**
Expand Down Expand Up @@ -87,7 +87,7 @@ public function MetaTags(&$tags)
$controller = Controller::curr();
$request = $controller->getRequest();
if ($request->getVar('ElementalPreview') !== null) {
$html = HTML4Value::create($tags);
$html = HTMLValue::create($tags);
$xpath = "//meta[@name='x-page-id' or @name='x-cms-edit-link']";
$removeTags = $html->query($xpath);
$body = $html->getBody();
Expand Down

0 comments on commit c552d2e

Please sign in to comment.