* Also use the profile cache for osKey2Name()

0.6.5-rc1
Justin Clarke Casey 2009-04-17 17:33:31 +00:00
parent be1855f163
commit e999c78600
1 changed files with 4 additions and 4 deletions

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