X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftheme.php;h=8b1713026970604ccd1aad323b92b777bd321626;hb=52bddd580c3f97add2d15f00c01c80acfc73230f;hp=70cac3b3a89811d7dcd01886ac2795a7f2f60274;hpb=9e99066fd70a9dd9a291a523afba1a390f0e3a0b;p=friendica.git diff --git a/view/theme/frio/theme.php b/view/theme/frio/theme.php index 70cac3b3a8..8b17130269 100644 --- a/view/theme/frio/theme.php +++ b/view/theme/frio/theme.php @@ -12,6 +12,7 @@ use Friendica\Core\Config; use Friendica\Core\PConfig; use Friendica\Core\System; use Friendica\Database\DBM; +use Friendica\Object\Image; $frio = "view/theme/frio"; @@ -22,7 +23,7 @@ function frio_init(App $a) { // disable the events module link in the profile tab $a->theme_events_in_profile = false; - set_template_engine($a, 'smarty3'); + $a->set_template_engine('smarty3'); $baseurl = System::baseUrl(); @@ -79,10 +80,9 @@ function frio_uninstall() { * @param App $a Unused but required by hook definition * @param array $body_info The item and its html output */ -function frio_item_photo_links(App $a, &$body_info) { - require_once('include/Photo.php'); - - $phototypes = Photo::supportedTypes(); +function frio_item_photo_links(App $a, &$body_info) +{ + $phototypes = Image::supportedTypes(); $occurence = 1; $p = bb_find_open_close($body_info['html'], "");