remove search_enabled config requirement
这个提交包含在:
父节点
eab8af8068
当前提交
b0a7eef25e
共有 2 个文件被更改,包括 33 次插入 和 38 次删除
|
|
@ -75,8 +75,7 @@ class Visitor extends CI_Controller {
|
||||||
|
|
||||||
$this->load->model('logbook_model');
|
$this->load->model('logbook_model');
|
||||||
|
|
||||||
// Only load, config, and init pagination if public search is enabled
|
// load config and init pagination
|
||||||
if ($this ->public_search_enabled($public_slug)) {
|
|
||||||
$this->load->library('pagination');
|
$this->load->library('pagination');
|
||||||
|
|
||||||
//Pagination config
|
//Pagination config
|
||||||
|
|
@ -105,7 +104,7 @@ class Visitor extends CI_Controller {
|
||||||
$config['num_tag_close'] = '</li>';
|
$config['num_tag_close'] = '</li>';
|
||||||
|
|
||||||
$this->pagination->initialize($config);
|
$this->pagination->initialize($config);
|
||||||
}
|
|
||||||
|
|
||||||
// Public visitor so no QRA to setup
|
// Public visitor so no QRA to setup
|
||||||
$data['qra'] = "none";
|
$data['qra'] = "none";
|
||||||
|
|
@ -141,9 +140,7 @@ class Visitor extends CI_Controller {
|
||||||
$data['total_lotw_rcvd'] = $QSLStatsBreakdownArray['LoTW_Received'];
|
$data['total_lotw_rcvd'] = $QSLStatsBreakdownArray['LoTW_Received'];
|
||||||
|
|
||||||
// If public search is enabled, show paginated results, otherwise show last 18 qsos
|
// If public search is enabled, show paginated results, otherwise show last 18 qsos
|
||||||
$data['results'] = $this->public_search_enabled($public_slug)
|
$data['results'] = $this->logbook_model->get_qsos($config['per_page'], $this->uri->segment(4), $logbooks_locations_array);
|
||||||
? $this->logbook_model->get_qsos($config['per_page'], $this->uri->segment(4), $logbooks_locations_array)
|
|
||||||
: $this->logbook_model->get_last_qsos('18', $logbooks_locations_array);
|
|
||||||
|
|
||||||
$data['page_title'] = "Dashboard";
|
$data['page_title'] = "Dashboard";
|
||||||
$data['slug'] = $public_slug;
|
$data['slug'] = $public_slug;
|
||||||
|
|
|
||||||
|
|
@ -113,11 +113,9 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
||||||
</tr>
|
</tr>
|
||||||
<?php $i++; } } ?>
|
<?php $i++; } } ?>
|
||||||
</table>
|
</table>
|
||||||
<?php if($this->CI->public_search_enabled($slug)) { ?>
|
|
||||||
<div class="pagination-links">
|
<div class="pagination-links">
|
||||||
<?php echo $this->pagination->create_links(); ?>
|
<?php echo $this->pagination->create_links(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用