mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 02:49:01 +00:00
Fixed getting link header
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
13d174d1b8
commit
347ab47844
@ -372,8 +372,7 @@ class PullsModel extends ListModel
|
||||
if ($page === 1) {
|
||||
// Default this to being a single page of results
|
||||
$lastPage = 1;
|
||||
if (isset($pullsResponse->headers['link'])) {
|
||||
$linkHeader = $pullsResponse->headers['link'];
|
||||
if ($linkHeader = $pullsResponse->getHeader('link')) {
|
||||
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
|
||||
if (is_array($linkHeader)) {
|
||||
$linkHeader = $linkHeader[0];
|
||||
|
Loading…
Reference in New Issue
Block a user