Skip to content

Commit

Permalink
Merge pull request #1291 from proditis/master
Browse files Browse the repository at this point in the history
regenerate avatar even if it exists
  • Loading branch information
proditis authored Nov 5, 2024
2 parents 2622ed6 + fe9726b commit 1cc79b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/models/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ public function genAvatar()
\Yii::error('The avatars folder or avatar file is not writeable. correct the permissions for the avatars to be generated.');
return;
}
if (file_exists($avatarPNG))
return;
//if (file_exists($avatarPNG))
// return;

$robohash = new \app\components\generators\AvatarGenerator($_pID);
$image = $robohash->generate_image();
Expand Down

0 comments on commit 1cc79b9

Please sign in to comment.