X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=7fab53b6807cadd363da70227b1f3c3a6679e5aa;hb=5cb3a0fcedf80937b051425be3ddb5f8d44f8c08;hp=3e138570cbf84688f489d6dcd4addc010c691225;hpb=453082516e90aba59553fd4392b2cdfed6ae9a57;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 3e138570cb..7fab53b680 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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'] . '
' : ''); $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);