Skip to content

Commit

Permalink
Merge pull request #782 from corowne/feature/fix-myo-format-default
Browse files Browse the repository at this point in the history
fix(characters): default to png for myo image if image format not set
  • Loading branch information
itinerare authored Jan 4, 2024
2 parents 100abc0 + 9e6aac2 commit 5db813e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/CharacterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1905,8 +1905,8 @@ private function handleCharacterImage($data, $character, $isMyo = false) {
if (!isset($data['image'])) {
$data['image'] = public_path('images/myo.png');
$data['thumbnail'] = public_path('images/myo-th.png');
$data['extension'] = Config::get('lorekeeper.settings.masterlist_image_format');
$data['fullsize_extension'] = Config::get('lorekeeper.settings.masterlist_fullsizes_format') ?? $data['extension'];
$data['extension'] = config('lorekeeper.settings.masterlist_image_format', 'png');
$data['fullsize_extension'] = config('lorekeeper.settings.masterlist_fullsizes_format') ?? $data['extension'];
$data['default_image'] = true;
unset($data['use_cropper']);
}
Expand Down

0 comments on commit 5db813e

Please sign in to comment.