diff --git a/code/Controllers/ContentController.php b/code/Controllers/ContentController.php
index 32b09bc4..187748b8 100644
--- a/code/Controllers/ContentController.php
+++ b/code/Controllers/ContentController.php
@@ -351,7 +351,7 @@ class ContentController extends Controller
}
$viewPageIn = _t('SilverStripe\\CMS\\Controllers\\ContentController.VIEWPAGEIN', 'View Page in:');
- return <<
@@ -366,6 +366,7 @@ class ContentController extends Controller
$message
HTML;
+ return DBField::create_field('HTMLFragment', $navigator);
// On live sites we should still see the archived message
} else {
@@ -374,9 +375,9 @@ HTML;
/** @var DBDatetime $dateObj */
$dateObj = DBField::create_field('Datetime', $date);
// $dateObj->setVal($date);
- return "
" .
+ return DBField::create_field('HTMLFragment', "
" .
_t('SilverStripe\\CMS\\Controllers\\ContentController.ARCHIVEDSITEFROM', 'Archived site from') .
- "
" . $dateObj->Nice() . "
";
+ "
" . $dateObj->Nice() . "
");
}
}
return null;