• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/deprecated/log.php
  • Класс: BitrixSocialnetworkDeprecatedLog
  • Вызов: Log::__InitUsersTmp
static function __InitUsersTmp($message, $titleTemplate1, $titleTemplate2)
{
	$usersIdList = explode(',', $message);

	$title = '';

	$first = true;
	$count = 0;
	foreach ($usersIdList as $userId)
	{
		$titleTmp = self::__InitUserTmp($userId);

		if ($titleTmp !== '')
		{
			if (!$first)
			{
				$title .= ", ";
			}

			$title .= $titleTmp;
			$count++;
		}

		$first = false;
	}

	return str_replace("#TITLE#", $title, (($count > 1) ? $titleTemplate2 : $titleTemplate1));
}