* Also use the profile cache for osKey2Name()

This commit is contained in:
Justin Clarke Casey
2009-04-17 17:33:31 +00:00
parent be1855f163
commit e999c78600

View File

@@ -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