Change order of formats for avatar

For avif or other formats not listed.
This commit is contained in:
Visman 2023-06-02 20:51:22 +07:00
parent 10ee39ae7d
commit aee3d0b0a8

View file

@ -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)