fix error when wrong dir was specified

This commit is contained in:
Jörn Friedrich Dreyer 2013-01-03 13:31:23 +01:00
parent f19787f84c
commit fc64e8ec58
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ if(strpos($dir, '..') === false) {
OCP\JSON::encodedPrint($result);
exit();
} else {
$error='invalid dir';
$error=$l->t( 'Invalid directory.' );
}
OCP\JSON::error(array('data' => array('error' => $error, 'file' => $fileName)));
OCP\JSON::error(array('data' => array('message' => $error )));