From 831399c40452e89401285a4a0400ead4c8bf75d5 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Mon, 4 Oct 2010 10:03:52 +0000 Subject: [PATCH] MDL-24497, hide message when maxbytes option is not explicit defined in moodle form --- lib/outputrenderers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index e3fbe44010d..09cf31b5b40 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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)); }