summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-06-29 21:39:29 -0400
committerFreya Murphy <freya@freyacat.org>2024-06-29 21:39:29 -0400
commit544c03c3aeb8f30dec90166a04f6406e80d84d59 (patch)
treee2116ef6eb240a400026609fe541cfe17a574712 /src
parentfix (diff)
downloadwebsite-544c03c3aeb8f30dec90166a04f6406e80d84d59.tar.gz
website-544c03c3aeb8f30dec90166a04f6406e80d84d59.tar.bz2
website-544c03c3aeb8f30dec90166a04f6406e80d84d59.zip
fix2
Diffstat (limited to 'src')
-rw-r--r--src/web/helpers/image.php4
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);