Skip to content

Commit

Permalink
App/modules/news: Patch/fix pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
code-path committed Apr 25, 2024
1 parent dbd6887 commit 1aef31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions application/modules/news/controllers/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ private function initPagination()
$config['last_link'] = 'Last';
$config['first_tag_open'] = '<li class="page-item"><span class="page-link">';
$config['first_tag_close'] = '</span></li>';
$config['last_tag_open'] = '<li class="page-item"><span class="page-link">';
$config['last_tag_close'] = '</span></li>';
$config['prev_link'] = '&laquo';
$config['prev_tag_open'] = '<li class="page-item"><span class="page-link">';
$config['prev_tag_close'] = '</span></li>';
Expand Down
2 changes: 1 addition & 1 deletion application/modules/news/models/News_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function getArticles($start = 0, $limit = 1)
{
$builder = $this->db->table('articles');
$builder->select();
if ($start === false) {
if ($start !== true) {
$builder->limit($limit, $start);
}

Expand Down

0 comments on commit 1aef31d

Please sign in to comment.