This commit is contained in:
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 = '';
}
$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);