From 4e45a22837eff9acb5e995f27d9bcbf044782140 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Wed, 28 Oct 2020 11:11:09 -0700 Subject: [PATCH] Minor wording change for unauthorized downloads --- classes/plugin/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/plugin/AdminController.php b/classes/plugin/AdminController.php index fdc52b55..f7502f28 100644 --- a/classes/plugin/AdminController.php +++ b/classes/plugin/AdminController.php @@ -1053,7 +1053,7 @@ class AdminController extends AdminBaseController $result = Gpm::install($package, ['theme' => $type === 'theme']); } catch (\Exception $e) { $msg = $e->getMessage(); - $msg = Utils::contains($msg, '401 Unauthorized') ? "ERROR: Authorization failed for this resource" : $msg; + $msg = Utils::contains($msg, '401 Unauthorized') ? "ERROR: License key for this resource is invalid." : $msg; $msg = Utils::contains($msg, '404 Not Found') ? "ERROR: Resource not found" : $msg; $this->admin->json_response = ['status' => 'error', 'message' => $msg];