• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/componentbase.php
  • Класс: BitrixTranslateComponentBase
  • Вызов: ComponentBase::checkModuleAvailability
protected function checkModuleAvailability()
{
	if (!MainLoader::includeModule('translate'))
	{
		if ($this->isAjaxRequest())
		{
			$this->sendJsonResponse(new Error('Module "translate" is not installed.', self::STATUS_ERROR));
		}
		else
		{
			$this->addError(new Error('Module "translate" is not installed.', self::STATUS_ERROR));
			$this->includeComponentTemplate(self::TEMPLATE_ERROR);
		}

		return false;
	}

	return true;
}