1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-14 00:54:03 +02:00

Flextype Core: Shortcodes - start using new Images API

This commit is contained in:
Awilum
2019-02-20 14:20:53 +03:00
parent 6c6342c77d
commit 2af3bafd04
2 changed files with 2 additions and 2 deletions

View File

@@ -57,5 +57,5 @@ Shortcodes::shortcode()->addHandler('images', function(ShortcodeInterface $s) {
($s->getParameter('id')) and $attributes['id'] = $s->getParameter('id');
($s->getParameter('alt')) and $attributes['alt'] = $s->getParameter('alt');
return Images::getImage($s->getParameter('path'), $params, $attributes);
return Images::fetchImage($s->getParameter('path'), $params, $attributes);
});

View File

@@ -50,5 +50,5 @@ Shortcodes::shortcode()->addHandler('images_url', function(ShortcodeInterface $s
($s->getParameter('q')) and $params['q'] = $s->getParameter('q');
($s->getParameter('fm')) and $params['fm'] = $s->getParameter('fm');
return Images::getImageUrl($s->getParameter('path'), $params);
return Images::fetchImageUrl($s->getParameter('path'), $params);
});