• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/spellchecker.php
  • Класс: CSpellchecker
  • Вызов: CSpellchecker::loadDic
function loadDic($letter)
{
	$path = $this->custom_dics_path.$letter.'.dic';
	if (is_readable($path))
	{
		$dic = file($path);
		foreach ($dic as $dict_word)
		{
			$this->dic[$letter][mb_strtolower(trim($dict_word))] = $dict_word;
		}
	}
	else
		$this->dic[$letter] = array();
}