1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 09:18:18 +03:00

fix аватарок

This commit is contained in:
Mzhelskiy Maxim 2012-06-26 22:40:29 +04:00
parent bbb04d44eb
commit cb158b355b
2 changed files with 2 additions and 2 deletions

View file

@ -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';
}
}
/**

View file

@ -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';
}
}
/**