]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Separate Object\Photo into Model\Photo and Object\Image
[friendica.git] / view / theme / frio / theme.php
index 70cac3b3a89811d7dcd01886ac2795a7f2f60274..8b1713026970604ccd1aad323b92b777bd321626 100644 (file)
@@ -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'], "<a", ">");