mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Extract recent QSO count in QSO page to a constant
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class QSO extends CI_Controller {
|
||||
class QSO extends CI_Controller
|
||||
{
|
||||
|
||||
const LAST_QSOS_COUNT = 5; // max number of most recent qsos to be displayed on a qso page
|
||||
|
||||
function __construct()
|
||||
{
|
||||
@@ -34,7 +37,7 @@ class QSO extends CI_Controller {
|
||||
$data['stations'] = $this->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);
|
||||
|
||||
Reference in New Issue
Block a user