]> git.mxchange.org Git - friendica.git/commitdiff
Enabled Profile photo revisions to be displayed in navigation bar
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Sun, 17 Jun 2012 20:22:37 +0000 (23:22 +0300)
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Sun, 17 Jun 2012 20:22:37 +0000 (23:22 +0300)
include/nav.php

index 909ba9b541da97cc278fb0922cb5a8faa402b1c9..784fe1a51b487528888637bcb517f663bee38f55 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 FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
+               $r = q("SELECT micro,avatar-date FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
                $userinfo = array(
-                       'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl($ssl_state)."/images/person-48.jpg"),
+                       'icon' => (count($r) ? $r[0]['micro']."?rev=".urlencode($r[0]['avatar-date']): $a->get_baseurl($ssl_state)."/images/person-48.jpg"),
                        'name' => $a->user['username'],
                );