Consider i_avatars_size when uploading avatars
This commit is contained in:
parent
7831282422
commit
e3ba9774e1
2 changed files with 2 additions and 2 deletions
|
@ -1090,7 +1090,7 @@ class Install extends Admin
|
|||
'o_avatars_dir' => '/img/avatars',
|
||||
'i_avatars_width' => 60,
|
||||
'i_avatars_height' => 60,
|
||||
'i_avatars_size' => 10240, // ???? сейчас не используется
|
||||
'i_avatars_size' => 10240,
|
||||
'o_search_all_forums' => 1,
|
||||
'o_admin_email' => $v->email,
|
||||
'o_webmaster_email' => $v->email,
|
||||
|
|
|
@ -128,7 +128,7 @@ class Edit extends Profile
|
|||
->rename(true)
|
||||
->rewrite(false)
|
||||
->resize($this->c->config->i_avatars_width, $this->c->config->i_avatars_height)
|
||||
->toFile($path);
|
||||
->toFile($path, $this->c->config->i_avatars_size);
|
||||
|
||||
if (true === $result) {
|
||||
$this->curUser->avatar = $v->upload_avatar->name() . '.' . $v->upload_avatar->ext();
|
||||
|
|
Loading…
Add table
Reference in a new issue