• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/fileman_utils.php
  • Класс: CFilemanSearch
  • Вызов: CFilemanSearch::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) : '/';
}