diff options
Diffstat (limited to 'site/app/controllers/components/developers.php')
-rw-r--r-- | site/app/controllers/components/developers.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/app/controllers/components/developers.php b/site/app/controllers/components/developers.php index 83b277c..7ccd263 100644 --- a/site/app/controllers/components/developers.php +++ b/site/app/controllers/components/developers.php @@ -659,9 +659,9 @@ class DevelopersComponent extends Object { // Move file if (file_exists($currentPath)) { - // Delete file if one already exists + // Bail if the file exists. See bug 470652 for a rough explanation if (file_exists($newPath)) { - unlink($newPath); + return sprintf(___('devcp_error_file_exists'), $filename); } // We must copy instead of rename now in case there are other platforms if (!copy($currentPath, $newPath)) { |