]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/diabook/theme.php
Introducing Frost
[friendica.git] / view / theme / diabook / theme.php
old mode 100755 (executable)
new mode 100644 (file)
index de7e418..53048df
@@ -18,6 +18,11 @@ $a->page['htmlhead'] .= sprintf('<META NAME=generator CONTENT="%s"/>', $diabook_
 
 //init css on network and profilepages
 $cssFile = null;
+
+// Preload config
+load_config("diabook");
+load_pconfig(local_user(), "diabook");
+
 //get statuses of boxes at right-hand-column
 $close_pages = false;
 $site_close_pages = get_config("diabook", "close_pages" );
@@ -523,7 +528,7 @@ if ($color=="dark") $color_path = "/diabook-dark/";
                        $entry = replace_macros($tpl,array(
                                '$id' => $rr['id'],
                                '$profile-link' => $profile_link,
-                               '$photo' => $rr[$photo],
+                               '$photo' => $a->get_cached_avatar_image($rr[$photo]),
                                '$alt-text' => $rr['name'],
                        ));
                        $aside['$lastusers_items'][] = $entry;