This commit is contained in:
Freya Murphy 2024-06-29 21:39:29 -04:00
parent aa314ae901
commit 544c03c3ae
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -30,9 +30,7 @@ function __make_source(
$media = ''; $media = '';
} }
$main = $GLOBALS['main_model']; $main = $GLOBALS['main_model'];
$file = $name . '.' . $format; $path = $main->get_url('public/' . $name . '.' . $format);
$time = filemtime($GLOBALS['publicroot'] . '/' . $file);
$path = $main->get_url('public/' . $file) . "?r={$time}";
$mime = __get_mime($format); $mime = __get_mime($format);
return sprintf('<source type="%s" srcset="%s" %s>', return sprintf('<source type="%s" srcset="%s" %s>',
$mime, $path, $media); $mime, $path, $media);