#229 | |
#230 | if( is_file(ROOT_PATH.$avatar) ){ |
#231 | return $this->cfg['weburl'].$avatar; |
#232 | }else{ |
#233 | $user = $this->user->get($uid); |
#234 | if(isset($user['avatar']) && $user['avatar'] && is_file(ROOT_PATH.$user['avatar'])){ |
#235 | return $this->cfg['weburl'].$user['avatar']; |
#236 | } |
#237 | return $this->cfg['weburl'].'static/img/avatar.png'; |
#238 | } |