mirror of
https://github.com/opensim/opensim.git
synced 2026-07-03 17:35:40 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user