aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 1426070..0334169 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2137,9 +2137,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2137 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI"); 2137 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI");
2138 m_host.AddScriptLPS(1); 2138 m_host.AddScriptLPS(1);
2139 2139
2140 string HomeURI = String.Empty;
2141 IConfigSource config = m_ScriptEngine.ConfigSource; 2140 IConfigSource config = m_ScriptEngine.ConfigSource;
2141 string HomeURI = Util.GetConfigVarWithDefaultSection(config, "HomeURI", string.Empty);
2142 2142
2143 if (!string.IsNullOrEmpty(HomeURI))
2144 return HomeURI;
2145
2146 // Legacy. Remove soon!
2143 if (config.Configs["LoginService"] != null) 2147 if (config.Configs["LoginService"] != null)
2144 HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI); 2148 HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI);
2145 2149
@@ -2154,9 +2158,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2154 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridGatekeeperURI"); 2158 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridGatekeeperURI");
2155 m_host.AddScriptLPS(1); 2159 m_host.AddScriptLPS(1);
2156 2160
2157 string gatekeeperURI = String.Empty;
2158 IConfigSource config = m_ScriptEngine.ConfigSource; 2161 IConfigSource config = m_ScriptEngine.ConfigSource;
2162 string gatekeeperURI = Util.GetConfigVarWithDefaultSection(config, "GatekeeperURI", string.Empty);
2163
2164 if (!string.IsNullOrEmpty(gatekeeperURI))
2165 return gatekeeperURI;
2159 2166
2167 // Legacy. Remove soon!
2160 if (config.Configs["GridService"] != null) 2168 if (config.Configs["GridService"] != null)
2161 gatekeeperURI = config.Configs["GridService"].GetString("Gatekeeper", gatekeeperURI); 2169 gatekeeperURI = config.Configs["GridService"].GetString("Gatekeeper", gatekeeperURI);
2162 2170