diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 102ff76636..097d1ccc9d 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -429,7 +429,7 @@ namespace OpenSim
string result = "";
for (int i = 0; i < m_localWorld.Count; i++)
{
- if (!((Scene)m_localWorld[i]).Terrain.RunTerrainCmd(cmdparams, ref result))
+ if (!((Scene)m_localWorld[i]).Terrain.RunTerrainCmd(cmdparams, ref result,m_localWorld[i].RegionInfo.RegionName))
{
m_log.Error(result);
}
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 8bd09e3748..0f450c3671 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -178,7 +178,7 @@ namespace OpenSim.Region.Terrain
/// Commandline arguments (space seperated)
/// Reference that returns error or help text if returning false
/// If the operation was successful (if not, the error is placed into resultText)
- public bool RunTerrainCmd(string[] args, ref string resultText)
+ public bool RunTerrainCmd(string[] args, ref string resultText, string simName)
{
string command = args[0];
@@ -248,6 +248,7 @@ namespace OpenSim.Region.Terrain
break;
case "load":
+ args[2].Replace("%name%", simName);
switch (args[1].ToLower())
{
case "f32":
@@ -273,6 +274,7 @@ namespace OpenSim.Region.Terrain
break;
case "save":
+ args[2].Replace("%name%", simName);
switch (args[1].ToLower())
{
case "f32":