MDL-24497, hide message when maxbytes option is not explicit defined in moodle form

This commit is contained in:
Dongsheng Cai 2010-10-04 10:03:52 +00:00
parent ffdd6d1806
commit 831399c404

View File

@ -1920,7 +1920,7 @@ class core_renderer extends renderer_base {
$size = get_max_upload_file_size();
}
if ($size == -1) {
$maxsize = get_string('maxfilesize', 'moodle', 'unlimited');
$maxsize = '';
} else {
$maxsize = get_string('maxfilesize', 'moodle', display_size($size));
}