FIX: Minor

This commit is contained in:
Tony Air 2024-08-14 18:14:18 +02:00
parent c1e5abe65a
commit ee24867435

View File

@ -176,7 +176,10 @@ class PageControllerEx extends Extension
$obj = $this->owner; $obj = $this->owner;
$this->search_term = is_array($data) ? $data['q'] : $data; $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() public function SearchResults()