summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-10-23 10:17:50 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-10-23 10:59:01 +0200
commitbc0faa1c4e67f0058c1d9ce89a3727f09e321c9f (patch)
tree6b98b36c560712dea2160489f91c4f49a724227f
parent20716a153a9453d4da008a05949d848b53ea1220 (diff)
downloadnextcloud-server-bc0faa1c4e67f0058c1d9ce89a3727f09e321c9f.tar.gz
nextcloud-server-bc0faa1c4e67f0058c1d9ce89a3727f09e321c9f.zip
use correct filename in error result json
-rw-r--r--apps/files/ajax/newfile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php
index c3d1037bc3a..aab856dd9a4 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -64,7 +64,7 @@ if (\OC\Files\Filesystem::file_exists($target)) {
'data' => array(
'message' => $l10n->t(
"The name %s is already used in the folder %s. Please choose a different name.",
- array($target, $dir))
+ array($filename, $dir))
)
);
OCP\JSON::error($result);