diff options
author | Freya Murphy <freya@freyacat.org> | 2024-06-29 21:39:29 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-06-29 21:39:29 -0400 |
commit | 544c03c3aeb8f30dec90166a04f6406e80d84d59 (patch) | |
tree | e2116ef6eb240a400026609fe541cfe17a574712 /src/web/helpers/image.php | |
parent | fix (diff) | |
download | website-544c03c3aeb8f30dec90166a04f6406e80d84d59.tar.gz website-544c03c3aeb8f30dec90166a04f6406e80d84d59.tar.bz2 website-544c03c3aeb8f30dec90166a04f6406e80d84d59.zip |
fix2
Diffstat (limited to '')
-rw-r--r-- | src/web/helpers/image.php | 4 |
1 files changed, 1 insertions, 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('<source type="%s" srcset="%s" %s>', $mime, $path, $media); |