From 80a8e9033ecd3d4fdcab292c1f745f82fc634094 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Tue, 1 May 2018 12:59:53 +0100 Subject: [PATCH] Move navigator casting to static --- code/Controllers/ContentController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/Controllers/ContentController.php b/code/Controllers/ContentController.php index 187748b8..fe24d315 100644 --- a/code/Controllers/ContentController.php +++ b/code/Controllers/ContentController.php @@ -58,6 +58,10 @@ class ContentController extends Controller 'LoginForm' ); + private static $casting = array( + 'SilverStripeNavigator' => 'HTMLFragment', + ); + /** * The ContentController will take the URLSegment parameter from the URL and use that to look * up a SiteTree record.