mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
todo: pagination of replies
This commit is contained in:
parent
35253f1954
commit
4672eb75bd
@ -243,10 +243,14 @@ class Pastes extends CI_Model
|
|||||||
|
|
||||||
if ($replies)
|
if ($replies)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//todo
|
||||||
|
$amount = $this->config->item('per_page');
|
||||||
|
$page = $this->uri->segment(2);
|
||||||
$this->db->select('title, name, created, pid, snipurl');
|
$this->db->select('title, name, created, pid, snipurl');
|
||||||
$this->db->where('replyto', $data['pid']);
|
$this->db->where('replyto', $data['pid']);
|
||||||
$this->db->order_by('id', 'desc');
|
$this->db->order_by('id', 'desc');
|
||||||
$this->db->limit(100);
|
$this->db->limit($amount);
|
||||||
$query = $this->db->get('pastes');
|
$query = $this->db->get('pastes');
|
||||||
|
|
||||||
if ($query->num_rows() > 0)
|
if ($query->num_rows() > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user