From 809b65247a6244fd34997436b04895246a8af0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Mel=C3=ADk?= Date: Wed, 8 Jan 2025 13:15:55 +0100 Subject: [PATCH] Extract recent QSO count in QSO page to a constant --- application/controllers/Qso.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index fbe2b8f69..b2a0dc0d9 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -1,6 +1,9 @@ stations->all_of_user(); $data['radios'] = $this->cat->radios(true); $data['radio_last_updated'] = $this->cat->last_updated()->row(); - $data['query'] = $this->logbook_model->last_custom('5'); + $data['query'] = $this->logbook_model->last_custom(self::LAST_QSOS_COUNT); $data['dxcc'] = $this->logbook_model->fetchDxcc(); $data['iota'] = $this->logbook_model->fetchIota(); $data['modes'] = $this->modes->active(); @@ -601,7 +604,7 @@ class QSO extends CI_Controller { $this->load->model('logbook_model'); session_write_close(); - $data['query'] = $this->logbook_model->last_custom('5'); + $data['query'] = $this->logbook_model->last_custom(self::LAST_QSOS_COUNT); // Load view $this->load->view('qso/components/previous_contacts', $data);