use correct filename in error result json

This commit is contained in:
Jörn Friedrich Dreyer 2013-10-23 10:17:50 +02:00
parent 20716a153a
commit bc0faa1c4e
1 changed files with 1 additions and 1 deletions

View File

@ -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);