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:
parent
96b8480c51
commit
c1b1209f63
|
@ -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) {
|
||||||
|
|
|
@ -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'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user