Guest User

Untitled

a guest
Jan 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $post = $CI->post->read(array(
  2. 'id' => $pid_dec
  3. ))->row();
  4.  
  5. exists($post);
  6.  
  7. $new_post = $CI->post->create(array(
  8. 'parent_id' => $post->parent_id,
  9. 'in_reply_to_id' => $pid_dec,
  10. 'content' => $reply_text,
  11. 'content_syntax' => "markdown",
  12. 'user_id' => $uid_dec
  13. ));
  14.  
  15. $CI->thread->update(
  16. $new_post['id'],
  17. $new_post['parent_id'],
  18. $new_post['in_reply_to_id'],
  19. $uid_dec
  20. );
Add Comment
Please, Sign In to add comment