diff options
author | Eli Linden <eli@lindenlab.com> | 2010-04-07 10:27:10 -0700 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-04-07 10:27:10 -0700 |
commit | de62c3378171a69ff9a39f2f626f1b1d33d0763f (patch) | |
tree | 053883ba8ae6d02460736ed8a786f1913761b00d /indra/newview/llviewerinventory.cpp | |
parent | 25df7aca29074b6ae7f108c91673be117522bfc9 (diff) | |
parent | 3ecec85feb4e9878b32f5737ab8e35747360f138 (diff) |
Merge
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r-- | indra/newview/llviewerinventory.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 444d397146..8a891b1462 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -36,6 +36,7 @@ #include "llnotificationsutil.h" #include "llsdserialize.h" #include "message.h" +#include "indra_constants.h" #include "llagent.h" #include "llagentcamera.h" @@ -264,14 +265,10 @@ void LLViewerInventoryItem::fetchFromServer(void) const // we have to check region. It can be null after region was destroyed. See EXT-245 if (region) { - if(gAgent.getID() != mPermissions.getOwner()) - { - url = region->getCapability("FetchLib"); - } - else - { - url = region->getCapability("FetchInventory"); - } + if( ALEXANDRIA_LINDEN_ID.getString() == mPermissions.getOwner().getString()) + url = region->getCapability("FetchLib"); + else + url = region->getCapability("FetchInventory"); } else { |