From 544c03c3aeb8f30dec90166a04f6406e80d84d59 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 29 Jun 2024 21:39:29 -0400 Subject: [PATCH] fix2 --- src/web/helpers/image.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/web/helpers/image.php b/src/web/helpers/image.php index 8d58c1e..c18154a 100644 --- a/src/web/helpers/image.php +++ b/src/web/helpers/image.php @@ -30,9 +30,7 @@ function __make_source( $media = ''; } $main = $GLOBALS['main_model']; - $file = $name . '.' . $format; - $time = filemtime($GLOBALS['publicroot'] . '/' . $file); - $path = $main->get_url('public/' . $file) . "?r={$time}"; + $path = $main->get_url('public/' . $name . '.' . $format); $mime = __get_mime($format); return sprintf('', $mime, $path, $media);