From d5892e47a3499468ac16a2d9361ad9ff45a0bc7a Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 29 Jan 2025 09:25:28 +0100 Subject: [PATCH] Value of constant should also be used in text message --- application/controllers/Qso.php | 4 +++- application/views/qso/index.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 1f6256526..dc34ef929 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -2,7 +2,7 @@ class QSO extends CI_Controller { - const LAST_QSOS_COUNT = 5; // max number of most recent qsos to be displayed on a qso page + const LAST_QSOS_COUNT = 5; // max number of most recent qsos to be displayed on a qso page function __construct() { @@ -86,6 +86,8 @@ class QSO extends CI_Controller { $data['user_dok_to_qso_tab'] = 0; } + $data['qso_count'] = self::LAST_QSOS_COUNT; + $this->load->library('form_validation'); $this->form_validation->set_rules('start_date', 'Date', 'required'); diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 0b416dc84..0f873e5fc 100644 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -776,7 +776,7 @@ - +