修复用户中心的几个小bug

把之前疏忽的一些文件更新上来
This commit is contained in:
2018-03-02 08:55:39 +08:00
parent 5c940ad9a4
commit 7399c631ce
395 changed files with 111173 additions and 2 deletions

View File

@@ -791,9 +791,9 @@ function execute_action($rules = false, $action_id = null, $user_id = null) {
function avatar($uid, $size = 'middle') {
$size = in_array($size, array('big', 'middle', 'small', 'real')) ? $size : 'middle';
$dir = setavatardir($uid);
$file = BASE_PATH . '/uploads/avatar/' . $dir . 'avatar_' . $size . '.png';
$file = BASE_PATH . '/static/avatar/' . $dir . 'avatar_' . $size . '.png';
if (!file_exists('.' . $file)) {
$file = BASE_PATH . '/public/images/default_avatar_' . $size . '.jpg';
$file = BASE_PATH . '/static/images/default_avatar_' . $size . '.jpg';
}
return $file;
}