Fixed fetching data
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
96b8480c51
commit
c1b1209f63
|
@ -47,7 +47,7 @@ class FetchController extends BaseController
|
|||
try {
|
||||
$page = $session->get('com_patchtester_fetcher_page', 1);
|
||||
/** @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);
|
||||
} catch (Exception $e) {
|
||||
|
|
|
@ -14,7 +14,7 @@ use Joomla\Registry\Registry;
|
|||
*/
|
||||
trait GithubCredentialsTrait
|
||||
{
|
||||
protected function getCredentials() {
|
||||
protected function getCredentials(): Registry {
|
||||
$state = new Registry();
|
||||
$params = ComponentHelper::getParams('com_patchtester');
|
||||
$state->set('github_user', $params->get('org', 'joomla'));
|
||||
|
|
Loading…
Reference in New Issue