Changeset 20833 for events/phpframework/codeigniter/trunk/system/application/models/status_model.php
- Timestamp:
- 10/06/08 10:52:31 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/codeigniter/trunk/system/application/models/status_model.php
r20831 r20833 6 6 { 7 7 parent::Model(); 8 $this->load->helper('date'); 8 9 } 9 10 … … 23 24 $statuses->reply_user_id = ''; 24 25 } 25 26 $this->load->helper('date');27 26 $statuses->comment = $comment; 28 27 $statuses->created_at = mdate('%Y-%m-%d %H:%i:%s'); 29 28 30 if ($this->db->insert('statuses', $statuses)) 31 { 32 $this->db->cache_delete('public_timeline', 'index'); 33 } 29 $this->db->insert('statuses', $statuses); 34 30 $id = $this->db->insert_id(); 35 31 … … 64 60 $statuses['user_id'] = $user_id; 65 61 66 if ($ret = $this->db->delete('statuses', $statuses)) 67 { 68 $this->db->cache_delete('public_timeline', 'index'); 69 } 70 71 return $ret; 62 return($this->db->delete('statuses', $statuses)); 72 63 } 73 64
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)