mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-19 09:18:18 +03:00
fix аватарок
This commit is contained in:
parent
bbb04d44eb
commit
cb158b355b
|
@ -170,7 +170,7 @@ class ModuleBlog_EntityBlog extends Entity {
|
|||
if ($sPath=$this->getAvatar()) {
|
||||
return preg_replace("#_\d{1,3}x\d{1,3}(\.\w{3,4})$#", ((($iSize==0)?"":"_{$iSize}x{$iSize}") . "\\1"),$sPath);
|
||||
} else {
|
||||
return Config::Get('path.static.skin').'/images/avatar_blog_'.$iSize.'x'.$iSize.'.jpg';
|
||||
return Config::Get('path.static.skin').'/images/avatar_blog_'.$iSize.'x'.$iSize.'.png';
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -354,7 +354,7 @@ class ModuleUser_EntityUser extends Entity {
|
|||
if ($sPath=$this->getProfileAvatar()) {
|
||||
return str_replace('_100x100',(($iSize==0)?"":"_{$iSize}x{$iSize}"),$sPath."?".date('His',strtotime($this->getProfileDate())));
|
||||
} else {
|
||||
return Config::Get('path.static.skin').'/images/avatar_'.($this->getProfileSex()=='woman' ? 'male' : 'female').'_'.$iSize.'x'.$iSize.'.jpg';
|
||||
return Config::Get('path.static.skin').'/images/avatar_'.($this->getProfileSex()=='woman' ? 'male' : 'female').'_'.$iSize.'x'.$iSize.'.png';
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue