• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/fileman_utils.php
  • Класс: CFilemanUtils
  • Вызов: CFilemanUtils::TrimPath
static function TrimPath($path, $docRoot = false)
{
	if ($docRoot === false)
		$docRoot = $_SERVER["DOCUMENT_ROOT"];
	$l = mb_strlen($docRoot);
	return mb_strlen($path) > $l? mb_substr($path, $l) : '/';
}