Пример #1
0
 private function subscribeAuthor($type, $id, $tid)
 {
     if ($this->feed->getentity()->getType() == $type && $this->feed->getentity()->getId() == $id) {
         CForumSubscribe::Add(array("USER_ID" => $this->getUser()->getId(), "FORUM_ID" => $this->arParams["FORUM_ID"], "SITE_ID" => SITE_ID, "TOPIC_ID" => $tid, "NEW_TOPIC_ONLY" => "N"));
         BXClearCache(true, "/bitrix/forum/user/" . $this->getUser()->getId() . "/subscribe/");
     }
 }