|
@@ -23,7 +23,12 @@ class Base
|
|
|
if ($this->user) {
|
|
|
$this->data['uid'] = $this->user['id'];
|
|
|
if (!$this->user['avatar']) {
|
|
|
- $this->user['avatar'] = Dever::config('host', 'main')->assets . 'mobile/images/avatar.jpg';
|
|
|
+ $config = Dever::db('main/config-one');
|
|
|
+ if ($config['avatar']) {
|
|
|
+ $this->user['avatar'] = $config['avatar'];
|
|
|
+ } else {
|
|
|
+ $this->user['avatar'] = Dever::config('host', 'main')->assets . 'mobile/images/avatar.jpg';
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|