From 9e423cede501eb8a8c772ea216eb68157473621c Mon Sep 17 00:00:00 2001 From: Chiffa Date: Wed, 22 Mar 2017 02:14:10 +0500 Subject: [PATCH] fix cached user avatar --- application/classes/modules/user/entity/User.entity.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/classes/modules/user/entity/User.entity.class.php b/application/classes/modules/user/entity/User.entity.class.php index 3304f7cc..95365975 100644 --- a/application/classes/modules/user/entity/User.entity.class.php +++ b/application/classes/modules/user/entity/User.entity.class.php @@ -484,7 +484,7 @@ class ModuleUser_EntityUser extends Entity } if ($this->getProfileAvatar()) { - return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize); + return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize) . '?' . date('His', strtotime($this->getProfileDate())); } else { return $this->Media_GetImagePathBySize(Router::GetFixPathWeb(Config::Get('path.skin.assets.web')) . '/images/avatars/avatar_' . ($this->getProfileSex() == 'woman' ? 'female' : 'male') . '.png', $iSize);