use correct filename in error result json

remotes/origin/stable6
Jörn Friedrich Dreyer 13 years ago
parent 20716a153a
commit bc0faa1c4e
  1. 2
      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);

Loading…
Cancel
Save