From a1760c44b98b97d20fc39eaf476e056e1406f997 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 11 Mar 2025 15:18:54 +0100 Subject: [PATCH] Added button for updating TLE's from satellite page --- application/controllers/Update.php | 4 ++-- application/views/satellite/index.php | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/application/controllers/Update.php b/application/controllers/Update.php index 6b9f025d9..c883e1b9c 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -465,7 +465,7 @@ class Update extends CI_Controller { } } - public function update_tle() { + public function update_tle($returnpath = 'debug') { $this->load->model('Update_model'); $result = $this->Update_model->tle(); if($this->session->userdata('user_type') == '99') { @@ -474,7 +474,7 @@ class Update extends CI_Controller { } else { $this->session->set_flashdata('error', __("TLE Update failed. Result: ") . "'" . $result . "'"); } - redirect('debug'); + redirect($returnpath); } else { echo $result; } diff --git a/application/views/satellite/index.php b/application/views/satellite/index.php index 86c942cf0..107a75211 100644 --- a/application/views/satellite/index.php +++ b/application/views/satellite/index.php @@ -1,6 +1,20 @@
session->flashdata('success'); ?>
+session->flashdata('error'); ?>
+