• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/authmanager.php
  • Класс: CSocServAuthManager
  • Вызов: CSocServAuthManager::GetError
public function GetError($service_id, $error_code)
{
	if(isset(self::$arAuthServices[$service_id]))
	{
		$service = self::$arAuthServices[$service_id];
		if(is_callable(array($service["CLASS"], "GetError")))
			return call_user_func_array(array($service["CLASS"], "GetError"), array($error_code));
		$error = ($error_code == 2) ? "socserv_error_new_user" : "socserv_controller_error";
		return GetMessage($error, array("#SERVICE_NAME#"=>$service["NAME"]));
	}
	return '';
}