diff --git a/administrator/components/com_patchtester/PatchTester/Controller/FetchController.php b/administrator/components/com_patchtester/PatchTester/Controller/FetchController.php index 0bb7cf2..3909b6d 100644 --- a/administrator/components/com_patchtester/PatchTester/Controller/FetchController.php +++ b/administrator/components/com_patchtester/PatchTester/Controller/FetchController.php @@ -78,16 +78,14 @@ class FetchController extends AbstractController { $session->set('com_patchtester_fetcher_page', $status['page']); + $message = Text::sprintf('COM_PATCHTESTER_FETCH_PAGE_NUMBER', $status['page']); + if ($session->has('com_patchtester_fetcher_last_page')) { $message = Text::sprintf( 'COM_PATCHTESTER_FETCH_PAGE_NUMBER_OF_TOTAL', $status['page'], $session->get('com_patchtester_fetcher_last_page') ); } - else - { - $message = Text::sprintf('COM_PATCHTESTER_FETCH_PAGE_NUMBER', $status['page']); - } } $response = new JsonResponse($status, $message, false, true); diff --git a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini index 492bc1e..6b84f0e 100644 --- a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini +++ b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini @@ -42,8 +42,8 @@ COM_PATCHTESTER_FIELD_GH_AUTH_LABEL="GitHub Authentication Method" COM_PATCHTESTER_FIELD_GH_AUTH_OPTION_CREDENTIALS="Credentials" COM_PATCHTESTER_FIELD_GH_AUTH_OPTION_TOKEN="Token" COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL="GitHub Account Password" -COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Password for the account entered in the 'GitHub Account Username' field. Note that accounts using Two Factor Authentication will not work with username and password authentication." -COM_PATCHTESTER_FIELD_GH_TOKEN_DESC="Use this field to input a GitHub API Token in place of your username and password. Note that this is required if your account has Two Factor Authentication enabled." +COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Password for the account entered in the 'GitHub Account Username' field. Note that accounts using Two Factor Authentication will not work with username and password authentication.
GitHub will discontinue the use of username and password on of November 13, 2020 at 4:00 PM UTC. It is highly recommended to use the Token Authentication Method
" +COM_PATCHTESTER_FIELD_GH_TOKEN_DESC="Use this field to input a GitHub API Token in place of your username and password. Note that this is required if your account has Two Factor Authentication enabled.To setup an access token, follow these steps.You can always revoke access by deleting the Personal access token from the Personal access tokens on Github.
" COM_PATCHTESTER_FIELD_GH_TOKEN_LABEL="GitHub Token" COM_PATCHTESTER_FIELD_GH_USER_LABEL="GitHub Account Username" COM_PATCHTESTER_FIELD_GH_USER_DESC="Name of account on GitHub to use to authenticate to the API." diff --git a/media/com_patchtester/js/fetcher.js b/media/com_patchtester/js/fetcher.js index f4d3f7c..e590578 100644 --- a/media/com_patchtester/js/fetcher.js +++ b/media/com_patchtester/js/fetcher.js @@ -86,6 +86,7 @@ if (typeof Joomla === 'undefined') { getRequest('fetch'); } else { jQuery('#progress').remove(); + jQuery('#modal-refresh button.close', window.parent.document).trigger('click'); } } catch (error) { try {