From 17a8577ee93882c73d425837254d0c64cd6e5db4 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 19 Feb 2020 23:39:51 +0300 Subject: [PATCH] feat(core): use PATH['uploads'] in Delivery Images API --- flextype/api/delivery/images.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/api/delivery/images.php b/flextype/api/delivery/images.php index abf3b1d4..33fa46e6 100644 --- a/flextype/api/delivery/images.php +++ b/flextype/api/delivery/images.php @@ -47,7 +47,7 @@ $app->get('/api/delivery/images/{path:.+}', function (Request $request, Response // Update calls counter Filesystem::write($delivery_images_token_file_path, $flextype['parser']->encode(array_replace_recursive($delivery_images_token_file_data, ['calls' => $delivery_images_token_file_data['calls'] + 1]), 'yaml')); - if (Filesystem::has(PATH['entries'] . '/' . $args['path'])) { + if (Filesystem::has(PATH['uploads'] . '/entries/' . $args['path'])) { return $flextype['images']->getImageResponse($args['path'], $_GET); } else { return $response->withJson([], 404);