fix2
This commit is contained in:
parent
aa314ae901
commit
544c03c3ae
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue