diff options
author | Melanie Thielker | 2009-06-06 16:39:28 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-06-06 16:39:28 +0000 |
commit | 5139160ce4fd0f2abfa2ca2b26bbcfcb884fe2ce (patch) | |
tree | 94b815ca0a937b4c9ae05d206d8fb732d79876dc /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | some code cleanup (diff) | |
download | opensim-SC_OLD-5139160ce4fd0f2abfa2ca2b26bbcfcb884fe2ce.zip opensim-SC_OLD-5139160ce4fd0f2abfa2ca2b26bbcfcb884fe2ce.tar.gz opensim-SC_OLD-5139160ce4fd0f2abfa2ca2b26bbcfcb884fe2ce.tar.bz2 opensim-SC_OLD-5139160ce4fd0f2abfa2ca2b26bbcfcb884fe2ce.tar.xz |
Correct an error where the config file name was always considered to be a
local file. This caused llHttpRequest and llSetInventoryPermsMask to fail
on regions that load their config from a web server
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a10ca3d..40889ca 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7978,11 +7978,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7978 | public void llSetObjectPermMask(int mask, int value) | 7978 | public void llSetObjectPermMask(int mask, int value) |
7979 | { | 7979 | { |
7980 | m_host.AddScriptLPS(1); | 7980 | m_host.AddScriptLPS(1); |
7981 | IConfigSource config = new IniConfigSource(Application.iniFilePath); | ||
7982 | if (config.Configs["XEngine"] == null) | ||
7983 | config.AddConfig("XEngine"); | ||
7984 | 7981 | ||
7985 | if (config.Configs["XEngine"].GetBoolean("AllowGodFunctions", false)) | 7982 | if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false)) |
7986 | { | 7983 | { |
7987 | if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID)) | 7984 | if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID)) |
7988 | { | 7985 | { |
@@ -8990,7 +8987,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8990 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); | 8987 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); |
8991 | 8988 | ||
8992 | string shard = "OpenSim"; | 8989 | string shard = "OpenSim"; |
8993 | IConfigSource config = new IniConfigSource(Application.iniFilePath); | 8990 | IConfigSource config = m_ScriptEngine.ConfigSource; |
8994 | if (config.Configs["Network"] != null) | 8991 | if (config.Configs["Network"] != null) |
8995 | { | 8992 | { |
8996 | shard | 8993 | shard |