mirror of
https://github.com/opensim/opensim.git
synced 2026-07-19 14:06:08 +08:00
fix webstats SStats defualt answer
This commit is contained in:
@@ -261,11 +261,13 @@ namespace OpenSim.Region.UserStatistics
|
||||
|
||||
// The request patch should be "/SStats/reportName" where 'reportName'
|
||||
// is one of the names added to the 'reports' hashmap.
|
||||
regpath = regpath.Remove(0, 8);
|
||||
if (regpath.Length == 0) regpath = "default.report";
|
||||
if (reports.ContainsKey(regpath))
|
||||
if (regpath.Length > 9)
|
||||
regpath = regpath.Remove(0, 8);
|
||||
else
|
||||
regpath = "default.report";
|
||||
|
||||
if (reports.TryGetValue(regpath, out IStatsController rep))
|
||||
{
|
||||
IStatsController rep = reports[regpath];
|
||||
Hashtable repParams = new Hashtable();
|
||||
|
||||
if (request.ContainsKey("json"))
|
||||
|
||||
Reference in New Issue
Block a user