From c40e478e80bdedfb545681ada7d4412bd440e44f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 29 Jun 2024 19:32:45 -0400 Subject: hi --- src/web/helpers/image.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/web/helpers') diff --git a/src/web/helpers/image.php b/src/web/helpers/image.php index c18154a..8d58c1e 100644 --- a/src/web/helpers/image.php +++ b/src/web/helpers/image.php @@ -30,7 +30,9 @@ function __make_source( $media = ''; } $main = $GLOBALS['main_model']; - $path = $main->get_url('public/' . $name . '.' . $format); + $file = $name . '.' . $format; + $time = filemtime($GLOBALS['publicroot'] . '/' . $file); + $path = $main->get_url('public/' . $file) . "?r={$time}"; $mime = __get_mime($format); return sprintf('', $mime, $path, $media); -- cgit v1.2.3-freya