use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
+use Friendica\Object\Image;
$frio = "view/theme/frio";
// 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();
* @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", ">");