diff options
author | Zvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net> | 2012-06-18 22:09:00 +0300 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-19 16:05:39 -0700 |
commit | 6df74b8cd96c4ea9df2c396d2b8ea46162eccc4d (patch) | |
tree | 3255492c83dd81f23cf802d7c95a1f36ab50db9c /include | |
parent | f8d9f158792dab187f0ef22e0413d581c553c443 (diff) | |
download | volse-hubzilla-6df74b8cd96c4ea9df2c396d2b8ea46162eccc4d.tar.gz volse-hubzilla-6df74b8cd96c4ea9df2c396d2b8ea46162eccc4d.tar.bz2 volse-hubzilla-6df74b8cd96c4ea9df2c396d2b8ea46162eccc4d.zip |
Now using App::get_cached_avatar_image for navigation bar
Diffstat (limited to 'include')
-rw-r--r-- | include/nav.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php index d760cc8ae..a67a8b614 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'], ); |