diff options
Diffstat (limited to 'src/web/helpers/image.php')
-rw-r--r-- | src/web/helpers/image.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/helpers/image.php b/src/web/helpers/image.php index c18154a..fd395b5 100644 --- a/src/web/helpers/image.php +++ b/src/web/helpers/image.php @@ -30,7 +30,7 @@ function __make_source( $media = ''; } $main = $GLOBALS['main_model']; - $path = $main->get_url('public/' . $name . '.' . $format); + $path = $main->get_url('public/' . $name . '.' . $format, TRUE); $mime = __get_mime($format); return sprintf('<source type="%s" srcset="%s" %s>', $mime, $path, $media); @@ -69,7 +69,7 @@ function image( $format = end($formats); $main = $GLOBALS['main_model']; - $path = $main->get_url('public/' . $name . '.' . $format); + $path = $main->get_url('public/' . $name . '.' . $format, TRUE); $out .= "<img src=\"$path\""; if ($alt) { $alt = lang($alt); |