1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Fix сокращение записи времени в URL аватара пользователя

This commit is contained in:
Alexey Kachayev 2010-01-08 11:41:32 +00:00
parent 91588cbb9e
commit a1b3ce2d09

View file

@ -126,7 +126,7 @@ class UserEntity_User extends Entity {
}
public function getProfileAvatarPath($iSize=100) {
if ($sPath=$this->getProfileAvatar()) {
return str_replace('_100x100',(($iSize==0)?"":"_{$iSize}x{$iSize}"),$sPath."?".urlencode($this->getProfileDate()));
return str_replace('_100x100',(($iSize==0)?"":"_{$iSize}x{$iSize}"),$sPath."?".date('His',strtotime($this->getProfileDate())));
} else {
return Config::Get('path.static.skin').'/images/avatar_'.$iSize.'x'.$iSize.'.jpg';
}