Skip to content
Snippets Groups Projects
Commit 8d47bb56 authored by ¡Cinder! ㊝'s avatar ¡Cinder! ㊝ :speech_balloon:
Browse files

Interim fix for slapps plus a currently unused function because i'm too lazy...

Interim fix for slapps plus a currently unused function because i'm too lazy to remove it for a two line change
parent 7a136cb7
No related branches found
No related tags found
No related merge requests found
...@@ -656,6 +656,18 @@ std::string LLGridManager::getGrid(const std::string& grid) const ...@@ -656,6 +656,18 @@ std::string LLGridManager::getGrid(const std::string& grid) const
return grid_name; return grid_name;
} }
std::string LLGridManager::getGridByProbing(const std::string& identifier) const
{
std::string grid = LLStringUtil::null;
grid = getGridByAttribute(GRID_VALUE, identifier);
if (!grid.empty()) return grid;
grid = getGridByAttribute(GRID_ID_VALUE, identifier);
if (!grid.empty()) return grid;
grid = getGridByAttribute(GRID_GATEKEEPER, identifier);
if (!grid.empty()) return grid;
return grid;
}
std::string LLGridManager::getGridByAttribute(const std::string& attribute, const std::string& value) const std::string LLGridManager::getGridByAttribute(const std::string& attribute, const std::string& value) const
{ {
if (attribute.empty() || value.empty()) return LLStringUtil::null; if (attribute.empty() || value.empty()) return LLStringUtil::null;
...@@ -958,7 +970,9 @@ std::string LLGridManager::getAppSLURLBase(const std::string& grid) const ...@@ -958,7 +970,9 @@ std::string LLGridManager::getAppSLURLBase(const std::string& grid) const
} }
else else
{ {
grid_base = llformat(DEFAULT_APP_SLURL_BASE, grid_name.c_str()); // *FIXME: Revert this when slurls are fixed!
//grid_base = llformat(DEFAULT_APP_SLURL_BASE, grid_name.c_str());
grid_base = SYSTEM_GRID_APP_SLURL_BASE;
} }
} }
LL_DEBUGS("GridManager")<<"returning '"<<grid_base<<"'"<<LL_ENDL; LL_DEBUGS("GridManager")<<"returning '"<<grid_base<<"'"<<LL_ENDL;
......
...@@ -90,6 +90,9 @@ class LLGridManager : public LLSingleton<LLGridManager> ...@@ -90,6 +90,9 @@ class LLGridManager : public LLSingleton<LLGridManager>
/// Return the name of a grid, given either its name or its id /// Return the name of a grid, given either its name or its id
std::string getGrid(const std::string& grid) const; std::string getGrid(const std::string& grid) const;
/// Returns the grid value by probing attributes
std::string getGridByProbing(const std::string& identifier) const;
/// Return the grid value by attribute /// Return the grid value by attribute
std::string getGridByAttribute(const std::string& attribute, const std::string& value) const; std::string getGridByAttribute(const std::string& attribute, const std::string& value) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment