]> git.mxchange.org Git - friendica.git/blobdiff - mod/directory.php
CS update to the strings
[friendica.git] / mod / directory.php
index 3e138570cbf84688f489d6dcd4addc010c691225..7fab53b6807cadd363da70227b1f3c3a6679e5aa 100644 (file)
@@ -27,6 +27,8 @@ function directory_post(&$a) {
 
 function directory_content(&$a) {
 
+       require_once("mod/proxy.php");
+
        if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
                notice( t('Public access denied.') . EOL);
                return;
@@ -90,7 +92,7 @@ function directory_content(&$a) {
 
 
                        $profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
-               
+
                        $pdesc = (($rr['pdesc']) ? $rr['pdesc'] . '<br />' : '');
 
                        $details = '';
@@ -140,7 +142,7 @@ function directory_content(&$a) {
                        $homepage = ((x($profile,'homepage') == 1) ?  t('Homepage:') : False);
 
                        $about = ((x($profile,'about') == 1) ?  t('About:') : False);
-                       
+
                        $tpl = get_markup_template('directory_item.tpl');
 
                        if($a->theme['template_engine'] === 'internal') {
@@ -153,7 +155,7 @@ function directory_content(&$a) {
                        $entry = replace_macros($tpl,array(
                                '$id' => $rr['id'],
                                '$profile_link' => $profile_link,
-                               '$photo' => $a->get_cached_avatar_image($rr[$photo]),
+                               '$photo' => proxy_url($a->get_cached_avatar_image($rr[$photo])),
                                '$alt_text' => $rr['name'],
                                '$name' => $rr['name'],
                                '$details' => $pdesc . $details,
@@ -171,7 +173,7 @@ function directory_content(&$a) {
                        $arr = array('contact' => $rr, 'entry' => $entry);
 
                        call_hooks('directory_item', $arr);
-                       
+
                        unset($profile);
                        unset($location);