aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-17 23:22:37 +0300
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-17 23:22:37 +0300
commitb0021a4637084e777ae478d34882da947655c7b2 (patch)
treeed1ff2bc86818c2c15b50b65b48dce2ce706d069 /include/nav.php
parent59e0b6a0e33f1454099423782420a7f986e1928e (diff)
downloadvolse-hubzilla-b0021a4637084e777ae478d34882da947655c7b2.tar.gz
volse-hubzilla-b0021a4637084e777ae478d34882da947655c7b2.tar.bz2
volse-hubzilla-b0021a4637084e777ae478d34882da947655c7b2.zip
Enabled Profile photo revisions to be displayed in navigation bar
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 909ba9b54..784fe1a51 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 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'],
);