Commit 00012a5d authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed error that was not letting admins change the user quota.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6725 b35dd754-fafc-0310-a699-88a17e54d16e
parent 747ab7f8
...@@ -44,15 +44,13 @@ ...@@ -44,15 +44,13 @@
%> %>
<% // Get parameters <% // Get parameters
OfflineMessageStrategy manager = webManager.getXMPPServer().getOfflineMessageStrategy();
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
int strategy = ParamUtils.getIntParameter(request,"strategy",-1); int strategy = ParamUtils.getIntParameter(request,"strategy",-1);
int storeStrategy = ParamUtils.getIntParameter(request,"storeStrategy",-1); int storeStrategy = ParamUtils.getIntParameter(request,"storeStrategy",-1);
double quota = ParamUtils.getIntParameter(request,"quota",0); double quota = ParamUtils.getDoubleParameter(request,"quota", manager.getQuota()/1024);
DecimalFormat format = new DecimalFormat("#0.00"); DecimalFormat format = new DecimalFormat("#0.00");
// Get the offline message manager
OfflineMessageStrategy manager = webManager.getXMPPServer().getOfflineMessageStrategy();
// Update the session kick policy if requested // Update the session kick policy if requested
Map<String, String> errors = new HashMap<String, String>(); Map<String, String> errors = new HashMap<String, String>();
if (update) { if (update) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment