mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
shorthand
This commit is contained in:
parent
f2721cf6f6
commit
c9d716959c
@ -236,15 +236,7 @@ class Pastes extends CI_Model
|
||||
if ($replies)
|
||||
{
|
||||
$amount = $this->config->item('per_page');
|
||||
|
||||
if (!$this->uri->segment(3))
|
||||
{
|
||||
$page = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$page = $this->uri->segment(3);
|
||||
}
|
||||
$page = ($this->uri->segment(3) ? $this->uri->segment(3) : 0);
|
||||
$this->db->select('title, name, created, pid, snipurl');
|
||||
$this->db->where('replyto', $data['pid']);
|
||||
$this->db->order_by('id', 'desc');
|
||||
@ -326,15 +318,7 @@ class Pastes extends CI_Model
|
||||
$this->load->library('pagination');
|
||||
$this->load->library('process');
|
||||
$amount = $this->config->item('per_page');
|
||||
|
||||
if (!$this->uri->segment(2))
|
||||
{
|
||||
$page = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$page = $this->uri->segment(2);
|
||||
}
|
||||
$page = ($this->uri->segment(2) ? $this->uri->segment(2) : 0);
|
||||
$this->db->select('id, title, name, created, pid, lang, raw');
|
||||
$this->db->where('private', 0);
|
||||
$this->db->order_by('created', 'desc');
|
||||
@ -377,15 +361,7 @@ class Pastes extends CI_Model
|
||||
$this->load->library('pagination');
|
||||
$this->load->library('process');
|
||||
$amount = $this->config->item('per_page');
|
||||
|
||||
if (!$this->uri->segment($seg))
|
||||
{
|
||||
$page = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$page = $this->uri->segment($seg);
|
||||
}
|
||||
$page = ($this->uri->segment($seg) ? $this->uri->segment($seg) : 0);
|
||||
$this->db->select('id, title, name, created, pid, lang, ip_address');
|
||||
$this->db->where('private', 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user