* Also use the profile cache for osKey2Name()
parent
be1855f163
commit
e999c78600
|
@ -1368,15 +1368,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
if (UUID.TryParse(id, out key))
|
if (UUID.TryParse(id, out key))
|
||||||
{
|
{
|
||||||
UserProfileData UserProfile = World.CommsManager.UserService
|
CachedUserInfo userInfo = World.CommsManager.UserProfileCacheService.GetUserDetails(key);
|
||||||
.GetUserProfile(key);
|
|
||||||
if (UserProfile==null)
|
if (null == userInfo)
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return UserProfile.Name;
|
return userInfo.UserProfile.Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue