diff options
Diffstat (limited to 'linden/indra/newview/llcurrencyuimanager.cpp')
-rw-r--r-- | linden/indra/newview/llcurrencyuimanager.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/linden/indra/newview/llcurrencyuimanager.cpp b/linden/indra/newview/llcurrencyuimanager.cpp index 8682124..99d0430 100644 --- a/linden/indra/newview/llcurrencyuimanager.cpp +++ b/linden/indra/newview/llcurrencyuimanager.cpp | |||
@@ -47,6 +47,7 @@ | |||
47 | #include "llxmlrpctransaction.h" | 47 | #include "llxmlrpctransaction.h" |
48 | #include "llviewernetwork.h" | 48 | #include "llviewernetwork.h" |
49 | 49 | ||
50 | #include "hippoGridManager.h" | ||
50 | 51 | ||
51 | const F64 CURRENCY_ESTIMATE_FREQUENCY = 2.0; | 52 | const F64 CURRENCY_ESTIMATE_FREQUENCY = 2.0; |
52 | // how long of a pause in typing a currency buy amount before an | 53 | // how long of a pause in typing a currency buy amount before an |
@@ -238,17 +239,11 @@ void LLCurrencyUIManager::Impl::finishCurrencyBuy() | |||
238 | void LLCurrencyUIManager::Impl::startTransaction(TransactionType type, | 239 | void LLCurrencyUIManager::Impl::startTransaction(TransactionType type, |
239 | const char* method, LLXMLRPCValue params) | 240 | const char* method, LLXMLRPCValue params) |
240 | { | 241 | { |
241 | static std::string transactionURI; | ||
242 | if (transactionURI.empty()) | ||
243 | { | ||
244 | transactionURI = LLViewerLogin::getInstance()->getHelperURI() + "currency.php"; | ||
245 | } | ||
246 | |||
247 | delete mTransaction; | 242 | delete mTransaction; |
248 | 243 | ||
249 | mTransactionType = type; | 244 | mTransactionType = type; |
250 | mTransaction = new LLXMLRPCTransaction( | 245 | mTransaction = new LLXMLRPCTransaction( |
251 | transactionURI, | 246 | LLViewerLogin::getInstance()->getHelperURI() + "currency.php", |
252 | method, | 247 | method, |
253 | params, | 248 | params, |
254 | false /* don't use gzip */ | 249 | false /* don't use gzip */ |
@@ -372,6 +367,7 @@ void LLCurrencyUIManager::Impl::updateUI() | |||
372 | } | 367 | } |
373 | 368 | ||
374 | mPanel.childShow("currency_action"); | 369 | mPanel.childShow("currency_action"); |
370 | mPanel.childSetTextArg("currency_action", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | ||
375 | 371 | ||
376 | LLLineEditor* lindenAmount = mPanel.getChild<LLLineEditor>("currency_amt"); | 372 | LLLineEditor* lindenAmount = mPanel.getChild<LLLineEditor>("currency_amt"); |
377 | if (lindenAmount) | 373 | if (lindenAmount) |
@@ -478,7 +474,9 @@ void LLCurrencyUIManager::buy(const std::string& buy_msg) | |||
478 | 474 | ||
479 | LLUIString msg = buy_msg; | 475 | LLUIString msg = buy_msg; |
480 | msg.setArg("[LINDENS]", llformat("%d", impl.mUserCurrencyBuy)); | 476 | msg.setArg("[LINDENS]", llformat("%d", impl.mUserCurrencyBuy)); |
477 | msg.setArg("[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | ||
481 | msg.setArg("[USD]", llformat("%#.2f", impl.mSiteCurrencyEstimatedCost / 100.0)); | 478 | msg.setArg("[USD]", llformat("%#.2f", impl.mSiteCurrencyEstimatedCost / 100.0)); |
479 | msg.setArg("[REALCURRENCY]", gHippoGridManager->getConnectedGrid()->getRealCurrencySymbol()); | ||
482 | LLConfirmationManager::confirm(impl.mSiteConfirm, | 480 | LLConfirmationManager::confirm(impl.mSiteConfirm, |
483 | msg, | 481 | msg, |
484 | impl, | 482 | impl, |