| #241 | return $this->cfg['weburl'] . $avatar; |
| #242 | } else { |
| #243 | $user = $this->user->get($uid); |
| #244 | if (isset($user['avatar']) && $user['avatar'] && is_file(ROOT_PATH . $user['avatar'])) { |
| #245 | return $this->cfg['weburl'] . $user['avatar']; |
| #246 | } |
| #247 | return $this->cfg['weburl'] . 'static/img/avatar.png'; |
| #248 | } |
| #249 | } else { |
| #250 | return $this->cfg['weburl'] . 'static/img/avatar.png'; |