Change order of formats for avatar
For avif or other formats not listed.
This commit is contained in:
parent
10ee39ae7d
commit
aee3d0b0a8
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class Edit extends Profile
|
|||
|
||||
if ($v->upload_avatar instanceof Image) {
|
||||
$name = $this->c->Secury->randomPass(8);
|
||||
$path = $this->c->DIR_PUBLIC . "{$this->c->config->o_avatars_dir}/{$name}.(jpg|png|gif|webp)";
|
||||
$path = $this->c->DIR_PUBLIC . "{$this->c->config->o_avatars_dir}/{$name}.(webp|jpg|png|gif)";
|
||||
$result = $v->upload_avatar
|
||||
->rename(true)
|
||||
->rewrite(false)
|
||||
|
|
Loading…
Add table
Reference in a new issue