diff --git a/php/Access/Admin.php b/php/Access/Admin.php index c083836..c706653 100644 --- a/php/Access/Admin.php +++ b/php/Access/Admin.php @@ -249,7 +249,7 @@ final class Admin extends Access { Validator::required(isset($_POST['albumID'], $_POST['path']), __METHOD__); $import = new Import(); - echo $import->server($_POST['path'], $_POST['albumID']); + Response::json($import->server($_POST['path'], $_POST['albumID'])); }