diff --git a/core/includes/file.inc b/core/includes/file.inc index 6536789..028df9c 100644 --- a/core/includes/file.inc +++ b/core/includes/file.inc @@ -601,7 +601,7 @@ function file_valid_uri($uri) { * - If file already exists in $destination either the call will error out, * replace the file or rename the file based on the $replace parameter. * - If the $source and $destination are equal, the behavior depends on the - * $replace parameter. FILE_EXIST_REPLACE will error out. FILE_EXIST_RENAME + * $replace parameter. FILE_EXISTS_REPLACE will error out. FILE_EXISTS_RENAME * will rename the file until the $destination is unique. * - Provides a fallback using realpaths if the move fails using stream * wrappers. This can occur because PHP's copy() function does not properly diff --git a/core/modules/file/file.module b/core/modules/file/file.module index bf67993..9bc1d85 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -137,7 +137,7 @@ function file_usage() { * - If file already exists in $destination either the call will error out, * replace the file or rename the file based on the $replace parameter. * - If the $source and $destination are equal, the behavior depends on the - * $replace parameter. FILE_EXIST_REPLACE will error out. FILE_EXIST_RENAME + * $replace parameter. FILE_EXISTS_REPLACE will error out. FILE_EXISTS_RENAME * will rename the file until the $destination is unique. * - Adds the new file to the files database. If the source file is a * temporary file, the resulting file will also be a temporary file. See