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