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 = '';
|
$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);
|
||||||
|
|
Loading…
Reference in a new issue