diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-07-09 20:17:20 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-07-09 20:17:20 -0400 |
commit | 47d7fc70e8cdf408cc7e5e5eb7e5f871d973136e (patch) | |
tree | fc325d9c111777700be5f69d0046940387196da6 /include/nav.php | |
parent | 0630609d6e60085f20d1430fd4044775dd9af5e9 (diff) | |
parent | e2574cf069dc29b1e8ca6bd64ee78b262206cef4 (diff) | |
download | volse-hubzilla-47d7fc70e8cdf408cc7e5e5eb7e5f871d973136e.tar.gz volse-hubzilla-47d7fc70e8cdf408cc7e5e5eb7e5f871d973136e.tar.bz2 volse-hubzilla-47d7fc70e8cdf408cc7e5e5eb7e5f871d973136e.zip |
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php index 6a79b6530..1fb0e98dc 100644 --- a/include/nav.php +++ b/include/nav.php @@ -255,6 +255,19 @@ $powered_by = ''; '$pleasewait' => t('Please wait...') )); + + if(x($_SESSION, 'reload_avatar') && $observer) { + // The avatar has been changed on the server but the browser doesn't know that, + // force the browser to reload the image from the server instead of its cache. + $tpl = get_markup_template('force_image_reload.tpl'); + + App::$page['nav'] .= replace_macros($tpl, array( + '$imgUrl' => $observer['xchan_photo_m'] + )); + unset($_SESSION['reload_avatar']); + } + + call_hooks('page_header', App::$page['nav']); } |