aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirfind.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:19 -0500
committerJacek Antonelli2008-08-15 23:45:19 -0500
commitb235c59d60472f818a9142c0886b95a0ff4191d7 (patch)
treed323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llpaneldirfind.cpp
parentSecond Life viewer sources 1.18.5.3 (diff)
downloadmeta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llpaneldirfind.cpp')
-rw-r--r--linden/indra/newview/llpaneldirfind.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldirfind.cpp b/linden/indra/newview/llpaneldirfind.cpp
index 3dd419f..640cbef 100644
--- a/linden/indra/newview/llpaneldirfind.cpp
+++ b/linden/indra/newview/llpaneldirfind.cpp
@@ -276,7 +276,7 @@ std::string LLPanelDirFindAll::getSearchURLSuffix(bool mature_in)
276 mature = false; 276 mature = false;
277 } 277 }
278 278
279 std::string url = gSavedSettings.getString("SearchURLSuffix"); 279 std::string url = gSavedSettings.getString("SearchURLSuffix2");
280 280
281 // if the mature checkbox is unchecked, modify query to remove 281 // if the mature checkbox is unchecked, modify query to remove
282 // terms with given phrase from the result set 282 // terms with given phrase from the result set
@@ -314,6 +314,11 @@ std::string LLPanelDirFindAll::getSearchURLSuffix(bool mature_in)
314 substring = "[Z]"; 314 substring = "[Z]";
315 url.replace(url.find(substring), substring.length(), z); 315 url.replace(url.find(substring), substring.length(), z);
316 316
317 LLUUID session_id = gAgent.getSessionID();
318 std::string session_string = session_id.getString();
319 substring = "[SESSION]";
320 url.replace(url.find(substring), substring.length(), session_string);
321
317 return url; 322 return url;
318} 323}
319 324
@@ -366,6 +371,8 @@ void LLPanelDirFindAll::onClickSearch(void* data)
366 LLPanelDirFindAll* self = ( LLPanelDirFindAll* )data; 371 LLPanelDirFindAll* self = ( LLPanelDirFindAll* )data;
367 LLString search_text = self->childGetText("search_editor"); 372 LLString search_text = self->childGetText("search_editor");
368 self->search(search_text); 373 self->search(search_text);
374
375 LLFloaterDirectory::sNewSearchCount++;
369} 376}
370 377
371void LLPanelDirFindAll::onNavigateBegin( const EventType& eventIn ) 378void LLPanelDirFindAll::onNavigateBegin( const EventType& eventIn )