]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
[WIP] Rewrite to Proxy class: (#5507)
[friendica.git] / mod / contacts.php
index f4cbbf44de0c8bab76864b9ebb1806d96b209d49..3650939cc00b7049206622ff4928978242a3cb60 100644 (file)
@@ -19,8 +19,7 @@ use Friendica\Model\Group;
 use Friendica\Model\Profile;
 use Friendica\Network\Probe;
 use Friendica\Util\DateTimeFormat;
-
-require_once 'mod/proxy.php';
+use Friendica\Util\Proxy as ProxyUtils;
 
 function contacts_init(App $a)
 {
@@ -970,7 +969,7 @@ function _contact_detail_for_template(array $rr)
                'id' => $rr['id'],
                'alt_text' => $alt_text,
                'dir_icon' => $dir_icon,
-               'thumb' => proxy_url($rr['thumb'], false, PROXY_SIZE_THUMB),
+               'thumb' => ProxyUtils::proxifyUrl($rr['thumb'], false, ProxyUtils::SIZE_THUMB),
                'name' => htmlentities($rr['name']),
                'username' => htmlentities($rr['name']),
                'account_type' => Contact::getAccountType($rr),