diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs index 8a6fb09..0716cf6 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs | |||
@@ -23,7 +23,7 @@ | |||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | 29 | using System; |
@@ -57,12 +57,12 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
57 | [Extension("/OpenSim/Startup")] | 57 | [Extension("/OpenSim/Startup")] |
58 | public class RestRegionPlugin : RestPlugin | 58 | public class RestRegionPlugin : RestPlugin |
59 | { | 59 | { |
60 | private static readonly log4net.ILog _log = | 60 | private static readonly log4net.ILog _log = |
61 | log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 61 | log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
62 | 62 | ||
63 | #region overriding properties | 63 | #region overriding properties |
64 | public override string Name | 64 | public override string Name |
65 | { | 65 | { |
66 | get { return "REGION"; } | 66 | get { return "REGION"; } |
67 | } | 67 | } |
68 | 68 | ||
@@ -86,7 +86,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
86 | try | 86 | try |
87 | { | 87 | { |
88 | base.Initialise(openSim); | 88 | base.Initialise(openSim); |
89 | if (IsEnabled) | 89 | if (IsEnabled) |
90 | m_log.InfoFormat("{0} Rest Plugins Enabled", MsgID); | 90 | m_log.InfoFormat("{0} Rest Plugins Enabled", MsgID); |
91 | else | 91 | else |
92 | m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); | 92 | m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); |
@@ -122,7 +122,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
122 | StringWriter sw = new StringWriter(); | 122 | StringWriter sw = new StringWriter(); |
123 | XmlTextWriter xw = new XmlTextWriter(sw); | 123 | XmlTextWriter xw = new XmlTextWriter(sw); |
124 | xw.Formatting = Formatting.Indented; | 124 | xw.Formatting = Formatting.Indented; |
125 | 125 | ||
126 | xw.WriteStartElement(String.Empty, "regions", String.Empty); | 126 | xw.WriteStartElement(String.Empty, "regions", String.Empty); |
127 | foreach (Scene s in App.SceneManager.Scenes) | 127 | foreach (Scene s in App.SceneManager.Scenes) |
128 | { | 128 | { |
@@ -132,7 +132,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
132 | } | 132 | } |
133 | xw.WriteEndElement(); | 133 | xw.WriteEndElement(); |
134 | xw.Close(); | 134 | xw.Close(); |
135 | 135 | ||
136 | return sw.ToString(); | 136 | return sw.ToString(); |
137 | } | 137 | } |
138 | 138 | ||
@@ -154,7 +154,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
154 | 154 | ||
155 | xs.Serialize(xw, new RegionDetails(scene.RegionInfo)); | 155 | xs.Serialize(xw, new RegionDetails(scene.RegionInfo)); |
156 | xw.Close(); | 156 | xw.Close(); |
157 | 157 | ||
158 | return sw.ToString(); | 158 | return sw.ToString(); |
159 | } | 159 | } |
160 | #endregion methods | 160 | #endregion methods |