Skip to content

Commit

Permalink
change location of icons so it's persistant
Browse files Browse the repository at this point in the history
  • Loading branch information
headred-chris committed Nov 5, 2018
1 parent 9679896 commit c7c2b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/SupportedApps.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ public static function getFiles($app)
public static function saveApp($details, $app)
{
$img_src = app_path('SupportedApps/'.className($details->name).'/'.$details->icon);
$img_dest = public_path('storage/supportedapps/'.$details->icon);
$img_dest = public_path('storage/icons/'.$details->icon);
//die("i: ".$img_src);
copy($img_src, $img_dest);

$app->appid = $details->appid;
$app->name = $details->name;
$app->sha = $details->sha ?? null;
$app->icon = 'supportedapps/'.$details->icon;
$app->icon = 'icons/'.$details->icon;
$app->website = $details->website;
$app->license = $details->license;
$app->description = $details->description;
Expand Down

0 comments on commit c7c2b6e

Please sign in to comment.