aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile_photo.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-07-06 21:31:17 +0200
committerMario Vavti <mario@mariovavti.com>2016-07-06 21:31:17 +0200
commita59e84cadd257403e30d57dcf5e4ed8d0715965a (patch)
treeba0ebb567f5b2a0842882d4bea66b8506f5159a8 /Zotlabs/Module/Profile_photo.php
parentd4627a0b1c1a0e08bb0606cf4b6ba4823b7a2862 (diff)
parentad954d01de7568e2834907b4eb24f71648c3a01d (diff)
downloadvolse-hubzilla-a59e84cadd257403e30d57dcf5e4ed8d0715965a.tar.gz
volse-hubzilla-a59e84cadd257403e30d57dcf5e4ed8d0715965a.tar.bz2
volse-hubzilla-a59e84cadd257403e30d57dcf5e4ed8d0715965a.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'Zotlabs/Module/Profile_photo.php')
-rw-r--r--Zotlabs/Module/Profile_photo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index 9359b80f8..f459f7deb 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -180,6 +180,8 @@ class Profile_photo extends \Zotlabs\Web\Controller {
dbesc(datetime_convert()),
dbesc($channel['xchan_hash'])
);
+ // Similarly, tell the nav bar to bypass the cache and update the avater image.
+ $_SESSION['reload_avatar'] = true;
info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);