]> git.mjollnir.org Git - moodle.git/commitdiff
Documentation on file sizes
authormartin <martin>
Sun, 1 Sep 2002 14:31:14 +0000 (14:31 +0000)
committermartin <martin>
Sun, 1 Sep 2002 14:31:14 +0000 (14:31 +0000)
user/edit.html
user/edit.php

index 159e51fc48ed145fdf92c9da89c97ab7642c4e84..e21de03775835c90e531007e2a537f2d7a8ddf7e 100644 (file)
@@ -48,8 +48,11 @@ if (isadmin()) {
        <td><P><? print_string("newpicture") ?>:</td>
        <td>
     <INPUT type="hidden" name="MAX_FILE_SIZE" value="4000000">
-    <input type="file" name="imagefile" size=40> ( .jpg / .png ) <? helpbutton("picture", get_string("helppicture") ) ?>
-       <? formerr($err["imagefile"]) ?>
+    <input type="file" name="imagefile" size=40>
+    <? helpbutton("picture", get_string("helppicture"));
+       print_string("maxsize", "", display_size(get_max_upload_file_size())); 
+          formerr($err["imagefile"]);
+    ?>
        </td>
 </tr>
 <tr valign=top>
index 3de6d84516e8926a6677d1c54e90dfac85f7fad6..106a0b5409d5853121bb1e0548674df6bb1cc115 100644 (file)
@@ -43,7 +43,6 @@
             $user = $usernew;
 
         } else {
-
                    $timenow = time();
 
             if ($filename = valid_uploaded_file($imagefile)) {