diff options
author | Zvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net> | 2012-06-18 22:18:43 +0300 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-19 16:05:39 -0700 |
commit | d4f4ed730c247f9339e71af40b8dbefff2565c48 (patch) | |
tree | c0ccc57983473d62f99c403fd533923a392d1b17 /mod | |
parent | 6df74b8cd96c4ea9df2c396d2b8ea46162eccc4d (diff) | |
download | volse-hubzilla-d4f4ed730c247f9339e71af40b8dbefff2565c48.tar.gz volse-hubzilla-d4f4ed730c247f9339e71af40b8dbefff2565c48.tar.bz2 volse-hubzilla-d4f4ed730c247f9339e71af40b8dbefff2565c48.zip |
Now using App::get_cached_avatar_image for /profile/{nickname} page
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profiles.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 7b6e61ad6..a9da5454c 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -635,7 +635,7 @@ function profiles_content(&$a) { } else { - $r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d and contact.self = 1", + $r = q("SELECT * FROM `profile` WHERE `uid` = %d", local_user()); if(count($r)) { @@ -652,7 +652,7 @@ function profiles_content(&$a) { foreach($r as $rr) { $o .= replace_macros($tpl, array( - '$photo' => $rr['thumb'] . '?rev=' . urlencode($rr['picdate']), + '$photo' => $a->get_cached_avatar_image($rr['thumb']), '$id' => $rr['id'], '$alt' => t('Profile Image'), '$profile_name' => $rr['profile-name'], |