]> git.mxchange.org Git - friendica.git/commitdiff
Now using App::get_cached_avatar_image for navigation bar
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Mon, 18 Jun 2012 19:09:00 +0000 (22:09 +0300)
committerfriendica <info@friendica.com>
Tue, 19 Jun 2012 23:05:39 +0000 (16:05 -0700)
include/nav.php

index d760cc8ae5bd7f6cab5614ff04a2db3800cce5d6..a67a8b614182f90716cfea6eb0bc140d043450e1 100644 (file)
@@ -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'],
                );