From 95eca6632aa3d22e156b34c4f597faf345a008dc Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 6 Jan 2019 19:50:10 +0300 Subject: [PATCH] Flextype Core: Glide/Intervention Image Implementation #61 --- flextype/Images.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flextype/Images.php b/flextype/Images.php index 8bbd9d53..2b97c267 100644 --- a/flextype/Images.php +++ b/flextype/Images.php @@ -218,7 +218,7 @@ class Images */ public static function getImageUrl($path, array $params) { - if (file_exists(PATH['entries'] . $path)) { + if (file_exists(PATH['entries'] . '/' . $path)) { return Http::getBaseUrl() . '/site/cache/glide/' . Images::$server->makeImage($path, $params); } else { return "File {$path} does not exist."; @@ -238,7 +238,7 @@ class Images */ public static function getImage($path, array $params, array $attributes = []) { - if (file_exists(PATH['entries'] . $path)) { + if (file_exists(PATH['entries'] . '/' . $path)) { return ''; } else { return "File {$path} does not exist.";