Prevent QRA lib being loaded over and over again (and spilling debug

log)
This commit is contained in:
phl0
2024-08-27 12:36:50 +02:00
parent 345f5d36ea
commit 88e006ef2d
2 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ class QSO extends CI_Controller {
$data['notice'] = false;
$data['stations'] = $this->stations->all_of_user();
$data['radios'] = $this->cat->radios();
$data['radio_last_updated'] = $this->cat->last_updated()->row();
$data['radio_last_updated'] = $this->cat->last_updated()->row();
$data['query'] = $this->logbook_model->last_custom('5');
$data['dxcc'] = $this->logbook_model->fetchDxcc();
$data['iota'] = $this->logbook_model->fetchIota();
@@ -596,14 +596,15 @@ class QSO extends CI_Controller {
// Return Previous QSOs Made in the active logbook
public function component_past_contacts() {
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); }
$this->load->model('logbook_model');
session_write_close();
$this->load->library('Qra');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); }
$this->load->model('logbook_model');
session_write_close();
$data['query'] = $this->logbook_model->last_custom('5');
$data['query'] = $this->logbook_model->last_custom('5');
// Load view
$this->load->view('qso/components/previous_contacts', $data);
// Load view
$this->load->view('qso/components/previous_contacts', $data);
}
public function get_eqsl_default_qslmsg() { // Get ONLY Default eQSL-Message with this function. This is ONLY for QSO relevant!