From: <sy...@us...> - 2009-04-02 21:17:36
|
Revision: 17765 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=17765&view=rev Author: sylvieg Date: 2009-04-02 21:17:27 +0000 (Thu, 02 Apr 2009) Log Message: ----------- [FIX]forum: delete watches when deleting topic Modified Paths: -------------- branches/3.0/lib/commentslib.php Modified: branches/3.0/lib/commentslib.php =================================================================== --- branches/3.0/lib/commentslib.php 2009-04-02 18:40:24 UTC (rev 17764) +++ branches/3.0/lib/commentslib.php 2009-04-02 21:17:27 UTC (rev 17765) @@ -2240,6 +2240,10 @@ global $contributionlib;require_once('lib/contribution/contributionlib.php'); $contributionlib->remove_comment($res['threadId']); } + $query = "delete from `tiki_user_watches` where `object`=? and `type`= ?"; + $this->query($query, array((int)$threadId, 'forum topic')); + $query = "delete from `tiki_group_watches` where `object`=? and `type`= ?"; + $this->query($query, array((int)$threadId, 'forum topic')); } $query = "delete from `tiki_comments` where `threadId`=? or `parentId`=?"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |