From 135dfcb666697c5b7fff30a9f6076b69bc92b888 Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Mon, 1 Mar 2021 17:41:41 +0100 Subject: [PATCH] Settings Page Fix --- app/views/Setting.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/views/Setting.php b/app/views/Setting.php index 6133b4b..3297512 100644 --- a/app/views/Setting.php +++ b/app/views/Setting.php @@ -10,24 +10,12 @@ class Setting extends Template header('Location: ' . BASEURL . 'login'); } - $automations = []; - $automationsData = AutomationManager::getAll(); - foreach ($automationsData as $automationKey => $automationData) { - $automations[$automationData['automation_id']] = [ - 'name' => '', - 'onDays' => $automationData['on_days'], - 'ifSomething' => $automationData['if_something'], - 'doSomething' => $automationData['do_something'], - ]; - } - $template = new Template('setting'); $template->prepare('baseDir', BASEDIR); $template->prepare('baseUrl', BASEURL); $template->prepare('debugMod', DEBUGMOD); - $template->prepare('title', 'Automation'); + $template->prepare('title', 'Settings'); $template->prepare('langMng', $langMng); - $template->prepare('automations', $automations); $users = $userManager->getUsers(); foreach ($users as $key => $value) {