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.";