• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_site.php
  • Класс: CWizard
  • Вызов: CWizard::__GetFileName
function __GetFileName($fileName, $postFix)
	{
		if ($postFix == "")
			return $fileName;

		$position = mb_strrpos($fileName, ".");

		if ($position !== false)
			$fileName = mb_substr($fileName, 0, $position).$postFix.mb_substr($fileName, $position);

		return $fileName;
	}