Beispiel #1
0
				if ($arIDs["COUNT"] > 0)
				{
					$comments[$arIDs["COMMENT_ID"]]["VoteDown"] = $arIDs["COUNT"];
				} else
				{
					$comments[$arIDs["COMMENT_ID"]]["VoteDown"] = 0;
				}
			}
			$comments[$arIDs["COMMENT_ID"]]["TOTAL_VOTE"] =
				(($comments[$arIDs["COMMENT_ID"]]["VoteDown"] * -1) + $comments[$arIDs["COMMENT_ID"]]["VoteUp"]);
		}
	}

	unset($arResult['ERRORS']['BANNED']);
	$arResult['COMMENTS'] = $comments;
	$arResult['COMMENTS_COUNT'] = sizeof($comment->GetActive($arParams["OBJECT_ID"]));
	$this->IncludeComponentTemplate();
}

//$tmp = 0;
if($_SESSION['ISERROR_TOCACHE'] || intval($arResult['SCROLL_TO_COMMENT'] && ($arParams['CACHE_TYPE'] == "A" || $arParams['CACHE_TYPE'] == "Y")) > 0)
{
	$CACHE_MANAGER->ClearByTag("prmedia_treelike_comments_".$arParams["OBJECT_ID"]);
	//$tmp = 1;
}

// @todo refactoring
// returns html text with img tags that replace appropriate smiles in text
function TreelikeCommentsSetSmiles($text = "", $iconArr = array(), $arParams = array())
{
	// Text must be filled