mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
robust: look for grid name and nick on another section
This commit is contained in:
@@ -174,18 +174,26 @@ namespace OpenSim.Services.GridService
|
||||
m_ExtraFeatures["destination-guide-url"] = configVal;
|
||||
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "GatekeeperURI", new string[] { "Startup", "Hypergrid" }, String.Empty);
|
||||
config, "GatekeeperURI", new string[] { "Startup", "Hypergrid" }, string.Empty);
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["GridURL"] = configVal;
|
||||
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "GridName", new string[] { "Const", "Hypergrid" }, String.Empty);
|
||||
config, "GridName", new string[] { "Const", "Hypergrid" }, string.Empty);
|
||||
if (string.IsNullOrEmpty(configVal))
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "gridname", new string[] { "GridInfo" }, String.Empty);
|
||||
config, "gridname", new string[] { "GridInfo", "GridInfoService" }, string.Empty);
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["GridName"] = configVal;
|
||||
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "GridNick", new string[] { "Const", "Hypergrid" }, string.Empty);
|
||||
if (string.IsNullOrEmpty(configVal))
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "gridnick", new string[] { "GridInfo", "GridInfoService" }, string.Empty);
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["GridNick"] = configVal;
|
||||
|
||||
m_ExtraFeatures["ExportSupported"] = gridConfig.GetString("ExportSupported", "true");
|
||||
|
||||
string[] sections = new string[] { "Const, Startup", "Hypergrid", "GatekeeperService" };
|
||||
|
||||
Reference in New Issue
Block a user