From e999c78600c0d1f0ad122987c8ded62251ceb049 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 17 Apr 2009 17:33:31 +0000 Subject: * Also use the profile cache for osKey2Name() --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 0cfa61d..30e457e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -1368,15 +1368,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (UUID.TryParse(id, out key)) { - UserProfileData UserProfile = World.CommsManager.UserService - .GetUserProfile(key); - if (UserProfile==null) + CachedUserInfo userInfo = World.CommsManager.UserProfileCacheService.GetUserDetails(key); + + if (null == userInfo) { return ""; } else { - return UserProfile.Name; + return userInfo.UserProfile.Name; } } else -- cgit v1.1