Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/controllers/components/developers.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/controllers/components/developers.php')
-rw-r--r--site/app/controllers/components/developers.php4
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)) {