31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-02 05:30:48 +00:00

Fixed fetching data

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2023-08-21 20:37:40 +02:00
parent 96b8480c51
commit c1b1209f63
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
3 changed files with 16 additions and 16 deletions

View File

@ -47,7 +47,7 @@ class FetchController extends BaseController
try { try {
$page = $session->get('com_patchtester_fetcher_page', 1); $page = $session->get('com_patchtester_fetcher_page', 1);
/** @var PullsModel $model */ /** @var PullsModel $model */
$model = $this->app->bootComponent('com_patchtester')->getMVCFactory()->createModel('Pulls', 'Administrator', ['ignore_request' => true]); $model = $this->app->bootComponent('com_patchtester')->getMVCFactory()->createModel('Pulls', 'Administrator');
$status = $model->requestFromGithub($page); $status = $model->requestFromGithub($page);
} catch (Exception $e) { } catch (Exception $e) {

View File

@ -14,7 +14,7 @@ use Joomla\Registry\Registry;
*/ */
trait GithubCredentialsTrait trait GithubCredentialsTrait
{ {
protected function getCredentials() { protected function getCredentials(): Registry {
$state = new Registry(); $state = new Registry();
$params = ComponentHelper::getParams('com_patchtester'); $params = ComponentHelper::getParams('com_patchtester');
$state->set('github_user', $params->get('org', 'joomla')); $state->set('github_user', $params->get('org', 'joomla'));