diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index 2859953..91226ae 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | |||
@@ -78,20 +78,28 @@ namespace OpenSim.Region.ClientStack.Linden | |||
78 | 78 | ||
79 | public void Initialise(IConfigSource source) | 79 | public void Initialise(IConfigSource source) |
80 | { | 80 | { |
81 | IConfig config = source.Configs ["SimulatorFeatures"]; | 81 | IConfig config = source.Configs["SimulatorFeatures"]; |
82 | string featuresURI = config.GetString ("ExtraFeaturesServiceURI", string.Empty); | 82 | |
83 | if (string.IsNullOrEmpty (featuresURI)) { | 83 | if (config != null) |
84 | m_log.Info ("ExtraFeaturesServiceURI is undefined. The grid's ExtraFeatures will not be available to regions in this instnace."); | 84 | { |
85 | } else { | 85 | string featuresURI = config.GetString("ExtraFeaturesServiceURI", string.Empty); |
86 | GetGridExtraFeatures(featuresURI); | 86 | |
87 | } | 87 | if (string.IsNullOrEmpty(featuresURI)) |
88 | { | ||
89 | m_log.Info("ExtraFeaturesServiceURI is undefined. The grid's ExtraFeatures will not be available to regions in this instnace."); | ||
90 | } | ||
91 | else | ||
92 | { | ||
93 | GetGridExtraFeatures(featuresURI); | ||
94 | } | ||
88 | 95 | ||
89 | if (config != null && m_AllowOverride == true) | 96 | if (m_AllowOverride) |
90 | { | 97 | { |
91 | m_SearchURL = config.GetString("SearchServerURI", string.Empty); | 98 | m_SearchURL = config.GetString("SearchServerURI", m_SearchURL); |
92 | m_DestinationGuideURL = config.GetString ("DestinationGuideURI", string.Empty); | 99 | m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL); |
93 | 100 | ||
94 | m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); | 101 | m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); |
102 | } | ||
95 | } | 103 | } |
96 | 104 | ||
97 | AddDefaultFeatures(); | 105 | AddDefaultFeatures(); |