summaryrefslogtreecommitdiff
path: root/src/web/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/helpers')
-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);