Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik süßenbach committed Jul 29, 2024
1 parent 873ca7e commit fd1708d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/Gateways/LeagueOfLegendsGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ public function grabRankImage(string $rankName): ?string

$fileName = 'Rank='.substr($rankName, 0, strpos($rankName, ' ') ?: strlen($rankName)).'.png';

if (File::exists($this->getRankImageFolderPath().'/'.$fileName)) {
$rankImage = File::get($this->getRankImageFolderPath().'/'.$fileName, true);
if (File::exists($this->getRankImageFolderPath().'/Ranked Emblems Latest/'.$fileName)) {
$rankImage = File::get($this->getRankImageFolderPath().'/Ranked Emblems Latest/'.$fileName, true);
} else {
Log::error('No rank image found', ['rankName' => $rankName, 'fileName' => $fileName]);
}
Expand Down

0 comments on commit fd1708d

Please sign in to comment.