Return import in correct format

This commit is contained in:
Tobias Reich 2016-03-24 21:29:09 +01:00
parent bd0f23ed5c
commit f3d4ca06c8

View File

@ -249,7 +249,7 @@ final class Admin extends Access {
Validator::required(isset($_POST['albumID'], $_POST['path']), __METHOD__); Validator::required(isset($_POST['albumID'], $_POST['path']), __METHOD__);
$import = new Import(); $import = new Import();
echo $import->server($_POST['path'], $_POST['albumID']); Response::json($import->server($_POST['path'], $_POST['albumID']));
} }