From dbcade703b82df7509e1d102b88bdc3f259c0495 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 20 Oct 2015 09:41:23 +0200 Subject: [PATCH] MDL-51829 admin: Set userquota setting as PARAM_INT --- admin/settings/security.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/settings/security.php b/admin/settings/security.php index 66cae6bf99992..8703d355eb688 100644 --- a/admin/settings/security.php +++ b/admin/settings/security.php @@ -35,7 +35,8 @@ $params = new stdClass(); $params->bytes = $defaultuserquota; $params->displaysize = display_size($defaultuserquota); - $temp->add(new admin_setting_configtext('userquota', new lang_string('userquota', 'admin'), new lang_string('configuserquota', 'admin', $params), $defaultuserquota)); + $temp->add(new admin_setting_configtext('userquota', new lang_string('userquota', 'admin'), + new lang_string('configuserquota', 'admin', $params), $defaultuserquota, PARAM_INT, 30)); $temp->add(new admin_setting_configcheckbox('allowobjectembed', new lang_string('allowobjectembed', 'admin'), new lang_string('configallowobjectembed', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('enabletrusttext', new lang_string('enabletrusttext', 'admin'), new lang_string('configenabletrusttext', 'admin'), 0));