From: Zvi ben Yaakov (a.k.a rdc) Date: Mon, 18 Jun 2012 19:09:00 +0000 (+0300) Subject: Now using App::get_cached_avatar_image for navigation bar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=428fce633feea10d0ba1b04be34a82fbc4448904;p=friendica.git Now using App::get_cached_avatar_image for navigation bar --- diff --git a/include/nav.php b/include/nav.php index d760cc8ae5..a67a8b6141 100644 --- a/include/nav.php +++ b/include/nav.php @@ -53,9 +53,9 @@ function nav(&$a) { $nav['usermenu'][] = Array('notes/', t('Personal notes'), "", t('Your personal photos')); // user info - $r = q("SELECT `micro`,`avatar-date` FROM `contact` WHERE uid=%d AND self=1", intval($a->user['uid'])); + $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid'])); $userinfo = array( - 'icon' => (count($r) ? $r[0]['micro']."?rev=".urlencode($r[0]['avatar-date']): $a->get_baseurl($ssl_state)."/images/person-48.jpg"), + 'icon' => (count($r) ? $a->get_cached_avatar_image($r[0]['micro']) : $a->get_baseurl($ssl_state)."/images/person-48.jpg"), 'name' => $a->user['username'], );