From ee24867435f98af982caa95ef2e8dc4ee08c47e4 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 14 Aug 2024 18:14:18 +0200 Subject: [PATCH] FIX: Minor --- src/Extensions/PageControllerEx.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Extensions/PageControllerEx.php b/src/Extensions/PageControllerEx.php index 440b694..0eadac1 100644 --- a/src/Extensions/PageControllerEx.php +++ b/src/Extensions/PageControllerEx.php @@ -176,7 +176,10 @@ class PageControllerEx extends Extension $obj = $this->owner; $this->search_term = is_array($data) ? $data['q'] : $data; - return $obj->renderWith(['PageController_search', 'Page']); + return $obj->customise([ + 'Layout' => $obj->renderWith(['Layout/PageController_search']), + 'isLegacy' => true, + ])->renderWith('Page'); } public function SearchResults()