• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/loader.php
  • Класс: BitrixMainLoader
  • Вызов: Loader::getLocal
static function getLocal($path, $root = null)
{
	if ($root === null)
	{
		$root = self::getDocumentRoot();
	}

	if (file_exists($root."/local/".$path))
	{
		return $root."/local/".$path;
	}
	elseif (file_exists($root."/bitrix/".$path))
	{
		return $root."/bitrix/".$path;
	}
	else
	{
		return false;
	}
}