]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/diabook/theme.php
Merge https://github.com/friendica/friendica into pull
[friendica.git] / view / theme / diabook / theme.php
index de7e4184199f06c096b21211a34809369867f34b..53048df6cd19e7f5e83bb874f61343396c1793f0 100755 (executable)
@@ -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;