diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/UserStatistics/WebStatsModule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs index 9d87c45..0251ee8 100644 --- a/OpenSim/Region/UserStatistics/WebStatsModule.cs +++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs | |||
@@ -89,21 +89,21 @@ namespace OpenSim.Region.UserStatistics | |||
89 | dbConn.Open(); | 89 | dbConn.Open(); |
90 | CheckAndUpdateDatabase(dbConn); | 90 | CheckAndUpdateDatabase(dbConn); |
91 | 91 | ||
92 | Default_Report rep = new Default_Report(); | ||
93 | Prototype_distributor protodep = new Prototype_distributor(); | 92 | Prototype_distributor protodep = new Prototype_distributor(); |
94 | Updater_distributor updatedep = new Updater_distributor(); | 93 | Updater_distributor updatedep = new Updater_distributor(); |
95 | ActiveConnectionsAJAX ajConnections = new ActiveConnectionsAJAX(); | 94 | ActiveConnectionsAJAX ajConnections = new ActiveConnectionsAJAX(); |
96 | SimStatsAJAX ajSimStats = new SimStatsAJAX(); | 95 | SimStatsAJAX ajSimStats = new SimStatsAJAX(); |
97 | LogLinesAJAX ajLogLines = new LogLinesAJAX(); | 96 | LogLinesAJAX ajLogLines = new LogLinesAJAX(); |
97 | Default_Report defaultReport = new Default_Report(); | ||
98 | Clients_report clientReport = new Clients_report(); | 98 | Clients_report clientReport = new Clients_report(); |
99 | Sessions_Report sessionsReport = new Sessions_Report(); | 99 | Sessions_Report sessionsReport = new Sessions_Report(); |
100 | 100 | ||
101 | reports.Add("", rep); | ||
102 | reports.Add("prototype.js", protodep); | 101 | reports.Add("prototype.js", protodep); |
103 | reports.Add("updater.js", updatedep); | 102 | reports.Add("updater.js", updatedep); |
104 | reports.Add("activeconnectionsajax.html", ajConnections); | 103 | reports.Add("activeconnectionsajax.html", ajConnections); |
105 | reports.Add("simstatsajax.html", ajSimStats); | 104 | reports.Add("simstatsajax.html", ajSimStats); |
106 | reports.Add("activelogajax.html", ajLogLines); | 105 | reports.Add("activelogajax.html", ajLogLines); |
106 | reports.Add("default.report", defaultReport); | ||
107 | reports.Add("clients.report", clientReport); | 107 | reports.Add("clients.report", clientReport); |
108 | reports.Add("sessions.report", sessionsReport); | 108 | reports.Add("sessions.report", sessionsReport); |
109 | 109 | ||
@@ -186,6 +186,7 @@ namespace OpenSim.Region.UserStatistics | |||
186 | string strOut = string.Empty; | 186 | string strOut = string.Empty; |
187 | 187 | ||
188 | regpath = regpath.Remove(0, 8); | 188 | regpath = regpath.Remove(0, 8); |
189 | if (regpath.Length == 0) regpath = "default.report"; | ||
189 | if (reports.ContainsKey(regpath)) | 190 | if (reports.ContainsKey(regpath)) |
190 | { | 191 | { |
191 | IStatsController rep = reports[regpath]; | 192 | IStatsController rep = reports[regpath]; |