if (!CForumNew::CanUserUpdateForum($ID, $USER->GetUserGroupArray(), $USER->GetID())) { $lAdmin->AddUpdateError(GetMessage("FA_NO_PERMS2UPDATE") . " " . $ID . "", $ID); continue; } $arFields = array("ACTIVE" => $_REQUEST['action'] == "activate" ? "Y" : "N"); if (!CForumNew::Update($ID, $arFields)) { if ($ex = $APPLICATION->GetException()) { $lAdmin->AddGroupError($ex->GetString(), $ID); } else { $lAdmin->AddGroupError(GetMessage("FA_ERROR_UPDATE") . " " . $ID . "", $ID); } } break; case "clear_html": $DB->StartTransaction(); if (!CForumNew::ClearHTML($ID)) { $DB->Rollback(); $lAdmin->AddGroupError(GetMessage("FA_ERROR_UPDATE") . " " . $ID . "", $ID); } $DB->Commit(); break; } } // Clear cache. $nameSpace = "bitrix"; $arComponentPath = array($nameSpace . ":forum.index", $nameSpace . ":forum.rss", $nameSpace . ":forum.search", $nameSpace . ":forum.statistic", $nameSpace . ":forum.topic.active", $nameSpace . ":forum.topic.move", $nameSpace . ":forum.topic.reviews", $nameSpace . ":forum.topic.search", $nameSpace . ":forum.user.list", $nameSpace . ":forum.user.post"); foreach ($arComponentPath as $path) { $componentRelativePath = CComponentEngine::MakeComponentPath($path); $arComponentDescription = CComponentUtil::GetComponentDescr($path); if (strLen($componentRelativePath) <= 0 || !is_array($arComponentDescription)) { continue;