• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/manager.php
  • Класс: BitrixLandingManager
  • Вызов: Manager::isDuplicateExistsInAnotherModule
static function isDuplicateExistsInAnotherModule(string $filePath, int $size): bool
{
	$hash = self::calculateHash($filePath, $size);
	if (!$hash)
	{
		return false;
	}

	$original = CFile::findDuplicate($size, $hash);
	if ($original === null)
	{
		return false;
	}

	// we allow duplicate only within from current module
	return $original->getFile()->getModuleId() !== 'landing';
}