Merge pull request #1 from phl0/constToText

Value of constant should also be used in text message
This commit is contained in:
Filip Melik
2025-01-29 09:31:17 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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');

View File

@@ -776,7 +776,7 @@
</div>
</div>
<small style="float: right;"><?= __("Max. 5 previous contacts are shown"); ?></small>
<small style="float: right;"><?= sprintf(__("Max. %s previous contacts are shown"), $qso_count); ?></small>
</div>
</div>