diff --git a/code/Controllers/CMSPageHistoryController.php b/code/Controllers/CMSPageHistoryController.php index 848c6fd40a..7847cb4389 100644 --- a/code/Controllers/CMSPageHistoryController.php +++ b/code/Controllers/CMSPageHistoryController.php @@ -16,6 +16,7 @@ use SilverStripe\ORM\FieldType\DBHTMLText; use SilverStripe\ORM\Versioning\Versioned; use SilverStripe\Security\Security; +use SilverStripe\View\ArrayData; use SilverStripe\View\ViewableData; class CMSPageHistoryController extends CMSMain { @@ -174,7 +175,7 @@ public function getEditForm($id = null, $fields = null, $versionID = null, $comp } $fields->addFieldToTab('Root.Main', - new LiteralField('CurrentlyViewingMessage', $this->customise(array( + new LiteralField('CurrentlyViewingMessage', ArrayData::create(array( 'Content' => DBField::create_field('HTMLFragment', $message), 'Classes' => 'notice' ))->renderWith($this->getTemplatesWithSuffix('_notice'))),