From daaa5a1f1f535c619a9e363a1bb59959e9e50e8a Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 5 Sep 2018 17:56:27 +0200 Subject: [PATCH] new: [automation description] Added legacy mode toggle --- app/Controller/EventsController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 673da849d..f206bf8ba 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -2268,7 +2268,7 @@ class EventsController extends AppController } } - public function automation() + public function automation($legacy = false) { // Simply display a static view if (!$this->userRole['perm_auth']) { @@ -2294,6 +2294,9 @@ class EventsController extends AppController $rpzSettings = $this->Server->retrieveCurrentSettings('Plugin', 'RPZ_'); $this->set('rpzSettings', $rpzSettings); $this->set('hashTypes', array_keys($this->Event->Attribute->hashTypes)); + if ($legacy) { + $this->render('legacy_automation'); + } } public function export()