diff --git a/code/Controllers/ContentController.php b/code/Controllers/ContentController.php
index fc01bf64..3989609d 100644
--- a/code/Controllers/ContentController.php
+++ b/code/Controllers/ContentController.php
@@ -356,7 +356,7 @@ class ContentController extends Controller
}
$viewPageIn = _t(__CLASS__ . '.VIEWPAGEIN', 'View Page in:');
- return <<
@@ -371,6 +371,7 @@ class ContentController extends Controller
$message
HTML;
+ return DBField::create_field('HTMLFragment', $navigator);
// On live sites we should still see the archived message
} else {
@@ -379,9 +380,9 @@ HTML;
/** @var DBDatetime $dateObj */
$dateObj = DBField::create_field('Datetime', $date);
// $dateObj->setVal($date);
- return "
" .
+ return DBField::create_field('HTMLFragment', "
" .
_t(__CLASS__ . '.ARCHIVEDSITEFROM', 'Archived site from') .
- "
" . $dateObj->Nice() . "
";
+ "
" . $dateObj->Nice() . "
");
}
}
return null;