From: <jon...@us...> - 2013-07-19 14:21:29
|
Revision: 46731 http://sourceforge.net/p/tikiwiki/code/46731 Author: jonnybradley Date: 2013-07-19 14:21:26 +0000 (Fri, 19 Jul 2013) Log Message: ----------- [FIX] xmllib: Syntax errors and typos Modified Paths: -------------- trunk/lib/wiki/xmllib.php Modified: trunk/lib/wiki/xmllib.php =================================================================== --- trunk/lib/wiki/xmllib.php 2013-07-19 14:15:14 UTC (rev 46730) +++ trunk/lib/wiki/xmllib.php 2013-07-19 14:21:26 UTC (rev 46731) @@ -339,22 +339,24 @@ } if ($prefs['feature_wiki_comments'] == 'y' && $tiki_p_edit_comments == 'y' && !empty($info['comments'])) { + $newThreadIds = array(); + foreach ($info['comments'] as $comment) { $commentslib = TikiLib::lib('comments'); $parentId = empty($comment['parentId']) ? 0: $newThreadIds[$comment['parentId']]; if ($parentId) { - $reply_info = $commentslib->get_comment($parentd); + $reply_info = $commentslib->get_comment($parentId); $in_reply_to = $reply_info['message_id']; } $newThreadIds[$comment['threadId']] = $commentslib->post_new_comment( 'wiki page:' . $info['name'], $parentId, - $config['fromUser'] ? $config['fromUser'] : $comment['user'], + $this->config['fromUser'] ? $this->config['fromUser'] : $comment['user'], $comment['title'], $comment['data'], $message_id, - $reply_to, + $in_reply_to, 'n', '', '', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |