]> git.mjollnir.org Git - moodle.git/commitdiff
Moved valid_uploaded_file out to lib/moodlelib.php
authormartin <martin>
Sun, 1 Sep 2002 14:31:49 +0000 (14:31 +0000)
committermartin <martin>
Sun, 1 Sep 2002 14:31:49 +0000 (14:31 +0000)
user/lib.php

index 7f253a9f05b7ad119145226f4c222e1deadbfd2a..c7ec94c0f5dc7f0db461f1a7c6de893709e35efb 100644 (file)
@@ -81,13 +81,4 @@ function print_user($user, $course, $string) {
     echo "</TD></TR></TABLE></TD></TR></TABLE>";
 }
 
-function valid_uploaded_file($newfile) {
-// Returns current name of file on disk if true
-    if (is_uploaded_file($newfile['tmp_name']) and $newfile['size'] > 0) {
-        return $newfile['tmp_name'];
-    } else {
-        return "";
-    }
-}
-
 ?>