From: <wol...@us...> - 2004-06-26 23:15:48
|
Update of /cvsroot/tikiwiki/tiki/lib/blogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22874/lib/blogs Modified Files: Tag: BRANCH-1-8 bloglib.php Log Message: Fixed to allow posts to be moved to other blogs Index: bloglib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/blogs/bloglib.php,v retrieving revision 1.26.2.3 retrieving revision 1.26.2.4 diff -u -d -r1.26.2.3 -r1.26.2.4 --- bloglib.php 18 Jun 2004 01:32:21 -0000 1.26.2.3 +++ bloglib.php 26 Jun 2004 23:15:38 -0000 1.26.2.4 @@ -456,10 +456,10 @@ return $res; } - function update_post($postId, $data, $user, $title = '', $trackbacks = '') { + function update_post($postId, $blogId, $data, $user, $title = '', $trackbacks = '') { $trackbacks = serialize($this->send_trackbacks($postId, $trackbacks)); - $query = "update `tiki_blog_posts` set `trackbacks_to`=?,`data`=?,`user`=?,`title`=? where `postId`=?"; - $result = $this->query($query,array($trackbacks,$data,$user,$title,$postId)); + $query = "update `tiki_blog_posts` set `blogId`=?,`trackbacks_to`=?,`data`=?,`user`=?,`title`=? where `postId`=?"; + $result = $this->query($query,array($blogId,$trackbacks,$data,$user,$title,$postId)); } function list_user_posts($user, $offset = 0, $maxRecords = -1, $sort_mode = 'created_desc', $find = '') { |