• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/spellchecker.php
  • Класс: CSpellchecker
  • Вызов: CSpellchecker::checkDicPath
private function checkDicPath()
{
	global $USER;
	$dics_path = $_SERVER["DOCUMENT_ROOT"].COption::GetOptionString('fileman', "user_dics_path", "/bitrix/modules/fileman/u_dics");

	$custom_path = $dics_path.'/'.$this->lang;

	if (COption::GetOptionString('fileman', "use_separeted_dics", "Y") == "Y")
	{
		$custom_path = $custom_path.'/'.$USER->GetID();
	}

	$io = CBXVirtualIo::GetInstance();
	if(!$io->DirectoryExists($custom_path))
	{
		$io->CreateDirectory($custom_path);
	}

	return $custom_path;
}