Skip to content

Commit e0a0906

Browse files
committed
CodeIgniter-Blog v2.4.3 Optimized website UI.
1 parent 133112c commit e0a0906

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

application/models/Admin_model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function article($config)
8181

8282
public function diaries($config)
8383
{
84-
$data = $this->db->get('diaries', $config['per_page'], $this->uri->segment(4));
84+
$data = $this->db->order_by('id', 'desc')->get('diaries', $config['per_page'], $this->uri->segment(4));
8585
return $data->result_array();
8686
}
8787

application/models/Home_model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function tweets($config)
3232

3333
public function diaries($config)
3434
{
35-
$data = $this->db->get('diaries', $config['per_page'], $this->uri->segment(3));
35+
$data = $this->db->order_by('id', 'desc')->get('diaries', $config['per_page'], $this->uri->segment(3));
3636
return $data->result_array();
3737
}
3838

0 commit comments

Comments
 (0)