• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/extlinks.php
  • Класс: CWebDavExtLinks
  • Вызов: CWebDavExtLinks::GetExtLink
static function GetExtLink($arParams, $options, $userID = null)
{
	$hashLink = self::getHashLink($arParams, $options, $userID);
	$GLOBALS["APPLICATION"]->RestartBuffer();
	if($hashLink != false)
	{
		if(empty($options['PASSWORD']))
		{
			$hashLink = CHTTP::urlAddParams($hashLink, array('LoadFile' => '1'));
		}
		echo $hashLink;
	}
	else
	{
		echo "error";
	}
	die;
}