33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-01-03 07:12:36 +00:00

[#324] Fix fetch data stopping after page 1

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2021-04-28 21:15:24 +02:00
parent 900d2289fc
commit 2b39f0e8cb
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E

View File

@ -535,9 +535,9 @@ class PullsModel extends AbstractModel
// Default this to being a single page of results // Default this to being a single page of results
$lastPage = 1; $lastPage = 1;
if (isset($pullsResponse->headers['Link'])) if (isset($pullsResponse->headers['link']))
{ {
$linkHeader = $pullsResponse->headers['Link']; $linkHeader = $pullsResponse->headers['link'];
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this // The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
if (is_array($linkHeader)) if (is_array($linkHeader))