From 94464802e66f8db1af645aeb026b01d454781840 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 2 Jul 2024 22:03:53 +0200 Subject: [PATCH] rename Lotw Model for general lotw purpose --- application/controllers/Lotw.php | 8 ++++---- application/models/{LotwCert.php => Lotw.php} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename application/models/{LotwCert.php => Lotw.php} (99%) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index f0a330b0d..96a50ec68 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -50,7 +50,7 @@ class Lotw extends CI_Controller { } // Load required models for page generation - $this->load->model('LotwCert'); + $this->load->model('Lotw'); // Get Array of the logged in users LoTW certs. $data['lotw_cert_results'] = $this->LotwCert->lotw_certs($this->session->userdata('user_id')); @@ -142,7 +142,7 @@ class Lotw extends CI_Controller { else { // Load database queries - $this->load->model('LotwCert'); + $this->load->model('Lotw'); //Upload of P12 successful $data = array('upload_data' => $this->upload->data()); @@ -226,7 +226,7 @@ class Lotw extends CI_Controller { foreach ($station_profiles->result() as $station_profile) { // Get Certificate Data - $this->load->model('LotwCert'); + $this->load->model('Lotw'); $data['station_profile'] = $station_profile; $data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_dxcc); @@ -389,7 +389,7 @@ class Lotw extends CI_Controller { $this->load->model('user_model'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } - $this->load->model('LotwCert'); + $this->load->model('Lotw'); $this->LotwCert->delete_certificate($this->session->userdata('user_id'), $cert_id); diff --git a/application/models/LotwCert.php b/application/models/Lotw.php similarity index 99% rename from application/models/LotwCert.php rename to application/models/Lotw.php index 1b46901f1..be66849b6 100644 --- a/application/models/LotwCert.php +++ b/application/models/Lotw.php @@ -1,6 +1,6 @@