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 28, 2024
1 parent 0a91254 commit 873ca7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Gateways/LeagueOfLegendsGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function grabRankImage(string $rankName): ?string
$rankImage = null;
if (! $this->getRankImageFolderPath()) {
if ($archiveFilePath = $this->downloadArchive('https://static.developer.riotgames.com/docs/lol/ranked-emblems-latest.zip', 'rank-icons')) {
$rankImageFolderPath = getcwd().'/storage/ranked-emblems-latest';
$rankImageFolderPath = getcwd().'/storage/rank-icons';
if ($this->extractArchive($archiveFilePath, $rankImageFolderPath)) {
$this->setRankImageFolderPath($rankImageFolderPath);
File::delete($archiveFilePath);
Expand Down

0 comments on commit 873ca7e

Please sign in to comment.