Commit 3fb6f14a authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#197267 by ufku: fix copy-pasted incorrect documentation on two file functions

parent 80e26c14
...@@ -614,7 +614,7 @@ function file_validate_name_length($file) { ...@@ -614,7 +614,7 @@ function file_validate_name_length($file) {
* @param $extensions * @param $extensions
* A string with a space separated * A string with a space separated
* @return * @return
* An array. If the file name is too long, it will contain an error message. * An array. If the file extension is not allowed, it will contain an error message.
*/ */
function file_validate_extensions($file, $extensions) { function file_validate_extensions($file, $extensions) {
global $user; global $user;
...@@ -644,7 +644,7 @@ function file_validate_extensions($file, $extensions) { ...@@ -644,7 +644,7 @@ function file_validate_extensions($file, $extensions) {
* An integer specifying the maximum number of bytes the user is allowed. Zero * An integer specifying the maximum number of bytes the user is allowed. Zero
* indicates that no limit should be enforced. * indicates that no limit should be enforced.
* @return * @return
* An array. If the file name is too long, it will contain an error message. * An array. If the file size exceeds limits, it will contain an error message.
*/ */
function file_validate_size($file, $file_limit = 0, $user_limit = 0) { function file_validate_size($file, $file_limit = 0, $user_limit = 0) {
global $user; global $user;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment