diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-07-12 14:35:32 -0400 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-07-12 14:35:32 -0400 | 
| commit | 77e2be798484e5a645e617e2bcf91e7b039dd96c (patch) | |
| tree | d3aadf61f4c3d0434d5441e752bd510be55aa4fd | |
| parent | b8351e83e8a0354de743c5a4adbc52930b563a76 (diff) | |
SH-2043 FIX
| -rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 14 | ||||
| -rwxr-xr-x[-rw-r--r--] | indra/newview/skins/default/xui/en/floater_model_preview.xml | 2 | 
2 files changed, 15 insertions, 1 deletions
| diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 80a9b8f781..877f70efa9 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -101,7 +101,9 @@  #include "llcallbacklist.h"  #include "llviewerobjectlist.h"  #include "llanimationstates.h" +#include "llviewernetwork.h"  #include "glod/glod.h" +#include <boost/algorithm/string.hpp>  const S32 SLM_SUPPORTED_VERSION = 2; @@ -476,6 +478,18 @@ BOOL LLFloaterModelPreview::postBuild()  			text->setMouseDownCallback(boost::bind(&LLModelPreview::setPreviewLOD, mModelPreview, i));  		}  	} +	std::string current_grid = LLGridManager::getInstance()->getGridLabel(); +	std::transform(current_grid.begin(),current_grid.end(),current_grid.begin(),::tolower); +	std::string validate_url; +	if (current_grid == "agni") +	{ +		validate_url = "http://secondlife.com/my/account/mesh.php"; +	} +	else +	{ +		validate_url = llformat("http://secondlife.%s.lindenlab.com/my/account/mesh.php",current_grid.c_str()); +	} +	getChild<LLTextBox>("warning_message")->setTextArg("[VURL]", validate_url);  	mUploadBtn = getChild<LLButton>("ok_btn");  	mCalculateBtn = getChild<LLButton>("calculate_btn"); diff --git a/indra/newview/skins/default/xui/en/floater_model_preview.xml b/indra/newview/skins/default/xui/en/floater_model_preview.xml index 060ddec1f4..a0a95fafb8 100644..100755 --- a/indra/newview/skins/default/xui/en/floater_model_preview.xml +++ b/indra/newview/skins/default/xui/en/floater_model_preview.xml @@ -92,7 +92,7 @@       parse_urls="true"       wrap="true"       visible="false"> -     You will not be able to complete the final upload of this model to the Second Life servers. [secondlife:///app/floater/learn_more Find out how] to get enabled for mesh model uploads.</text> +     You will not be able to complete the final upload of this model to the Second Life servers. [[VURL] Find out how] to get enabled for mesh model uploads.</text>    <text  	height="65" | 
