]> source.dussan.org Git - nextcloud-server.git/commitdiff
use correct filename in error result json
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 08:17:50 +0000 (10:17 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 08:59:01 +0000 (10:59 +0200)
apps/files/ajax/newfile.php

index c3d1037bc3ab21a152b9885a08fa536860303dce..aab856dd9a407bbf05a537d9b2b8c77f64e0d83b 100644 (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);