Mantis#1639. Thank you, Melanie for a patch that:

Reads estate_settings.xml and populates the database from it. 
If there is no record, just passes the defaults to the application.
This commit is contained in:
Charles Krinke
2008-07-01 02:16:58 +00:00
parent 32ca6b6035
commit bf34f65125
3 changed files with 213 additions and 5 deletions

View File

@@ -736,7 +736,14 @@ namespace OpenSim.Data.MySQL
string searchExp = "regionUUID = '" + regionUUID.ToString() + "'";
DataRow[] rawsettings = regionsettings.Select(searchExp);
if(rawsettings.Length == 0)
return null;
{
RegionSettings rs = new RegionSettings();
rs.RegionUUID = regionUUID;
StoreRegionSettings(rs);
return rs;
}
DataRow row = rawsettings[0];
return buildRegionSettings(row);