• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/imageeditor/proxy.php
  • Класс: BitrixMainUIImageEditorProxy
  • Вызов: Proxy::getCurrentHttpHost
protected function getCurrentHttpHost()
{
	static $server = null;

	if ($server === null)
	{
		$server = Application::getInstance()->getContext()->getServer();
	}

	return explode(':', $server->getHttpHost())[0];
}