summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2013-11-13 17:39:02 (GMT)
committerJennifer Hodgdon2013-11-13 17:39:02 (GMT)
commit30e56c5d84e824565812949eb330c69d74915240 (patch)
treee28287fc386c4ed6e2dcdbb41bd8bb20efaf151d
parent0871544264d8062cf7bc78eb4d4e319b45f2f149 (diff)
Issue #2084535 by sivaji: Fix constants in file_copy docs
-rw-r--r--core/includes/file.inc2
-rw-r--r--core/modules/file/file.module2
2 files changed, 2 insertions, 2 deletions
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