From 2fa2aa356ffd1b6099263d48662dd0ac14b41665 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 15 Oct 2024 12:51:55 +1300 Subject: [PATCH 1/2] ENH Use config instead of runtime code to remove menu items --- _config.php | 10 ---------- code/Controllers/CMSPageAddController.php | 2 ++ code/Controllers/CMSPageEditController.php | 2 ++ code/Controllers/CMSPageSettingsController.php | 2 ++ 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/_config.php b/_config.php index 0fb43491fc..6c1deee0d3 100644 --- a/_config.php +++ b/_config.php @@ -1,10 +1,5 @@ getRecord($id ?: $this->currentPageID()); From b07789db4404d8a5d3b768d631b3b69745dd49db Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 15 Oct 2024 12:53:02 +1300 Subject: [PATCH 2/2] API Update method signature to match parent class --- code/Controllers/CMSPageEditController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Controllers/CMSPageEditController.php b/code/Controllers/CMSPageEditController.php index 2bd91981d6..67dcfb3827 100644 --- a/code/Controllers/CMSPageEditController.php +++ b/code/Controllers/CMSPageEditController.php @@ -34,7 +34,7 @@ class CMSPageEditController extends CMSMain 'AddToCampaignForm', ]; - public function getClientConfig() + public function getClientConfig(): array { return ArrayLib::array_merge_recursive(parent::getClientConfig(), [ 'form' => [