]> 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 35e40aa96529143c97aa56f70dce78b74a6defb3..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";
 
@@ -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", ">");