]> git.mjollnir.org Git - moodle.git/commitdiff
Hi !!
authorstronk7 <stronk7>
Wed, 19 May 2004 23:34:51 +0000 (23:34 +0000)
committerstronk7 <stronk7>
Wed, 19 May 2004 23:34:51 +0000 (23:34 +0000)
Solved one bug before being posted to the Bugs System. Incredible !!!
(http://moodle.org/mod/forum/discuss.php?d=8089)
:-D

mod/glossary/edit.html

index f6b930254cc9cee0ff6dc4684f4379d477dc8d7e..49046fb79621d5607f5d1a7c726ed1801f3bb48c 100644 (file)
@@ -146,11 +146,11 @@ if (isset($errors)) {
 <tr valign=top>
     <td align=right><p><b><?php print_string("attachment", "glossary") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
     <td>
-    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size() ?>">
+    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size($CFG->maxbytes, $course->maxbytes) ?>">
     <input type="file" name="attachment" size=40> 
     <?php 
        helpbutton("attachment", get_string("attachment", "glossary"), "glossary"); 
-       print_string("maxsize", "", display_size(get_max_upload_file_size())); 
+       print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes))); 
     ?>
     </td>
 </tr>