diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index bfbe9675..b427a3a6 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -304,6 +304,7 @@ class ItemController extends Controller // basic details $output['icon'] = $app_details->icon(); + $output['name'] = $app_details->name; $output['iconview'] = $app_details->iconView(); $output['colour'] = $app_details->defaultColour(); $output['class'] = $appclass; @@ -357,7 +358,7 @@ class ItemController extends Controller SupportedApps::saveApp($app, $application); } else { // check if there has been an update for this app - $localapp = $localapps->where('name', $app->name)->first(); + $localapp = $localapps->where('appid', $app->appid)->first(); if($localapp) { if($localapp->sha !== $app->sha) { SupportedApps::getFiles($app); diff --git a/app/SupportedApps.php b/app/SupportedApps.php index 55b7685d..852363d0 100644 --- a/app/SupportedApps.php +++ b/app/SupportedApps.php @@ -75,14 +75,14 @@ abstract class SupportedApps { $list_url = 'https://apps.heimdall.site/list'; $client = new Client(['http_errors' => false, 'timeout' => 15, 'connect_timeout' => 15]); - return $client->request($this->method, $list_url); + return $client->request('GET', $list_url); } public static function getFiles($app) { $zipurl = $app->files; $client = new Client(['http_errors' => false, 'timeout' => 60, 'connect_timeout' => 15]); - $res = $client->request($this->method, $zipurl); + $res = $client->request('GET', $zipurl); if(!file_exists(app_path('SupportedApps'))) { mkdir(app_path('SupportedApps'), 0777, true); diff --git a/resources/views/items/form.blade.php b/resources/views/items/form.blade.php index bc6dcc2e..82782bd1 100644 --- a/resources/views/items/form.blade.php +++ b/resources/views/items/form.blade.php @@ -33,7 +33,7 @@