projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/seekat]
/
lib
/
API
/
Links
/
functions.php
diff --git
a/lib/API/Links/functions.php
b/lib/API/Links/functions.php
index eb9b495adedb11354d95b4b44e2cb1f1fb3f61da..f740851e9de6bc00131750539a63751142a89763 100644
(file)
--- a/
lib/API/Links/functions.php
+++ b/
lib/API/Links/functions.php
@@
-17,7
+17,7
@@
function first(API $api, Cache\Service $cache = null) : Promise {
if ($links && ($first = $links->getFirst())) {
return $api->withUrl($first)->get(null, null, $cache);
}
if ($links && ($first = $links->getFirst())) {
return $api->withUrl($first)->get(null, null, $cache);
}
- return Future\re
ject($api->getFuture(), $links
);
+ return Future\re
solve($api->getFuture(), null
);
}
/**
}
/**
@@
-30,7
+30,7
@@
function prev(API $api, Cache\Service $cache = null) : Promise {
if ($links && ($prev = $links->getPrev())) {
return $api->withUrl($prev)->get(null, null, $cache);
}
if ($links && ($prev = $links->getPrev())) {
return $api->withUrl($prev)->get(null, null, $cache);
}
- return Future\re
ject($api->getFuture(), $links
);
+ return Future\re
solve($api->getFuture(), null
);
}
/**
}
/**
@@
-43,7
+43,7
@@
function next(API $api, Cache\Service $cache = null) : Promise {
if ($links && ($next = $links->getNext())) {
return $api->withUrl($next)->get(null, null, $cache);
}
if ($links && ($next = $links->getNext())) {
return $api->withUrl($next)->get(null, null, $cache);
}
- return Future\re
ject($api->getFuture(), $links
);
+ return Future\re
solve($api->getFuture(), null
);
}
/**
}
/**
@@
-56,6
+56,6
@@
function last(API $api, Cache\Service $cache = null) : Promise {
if ($links && ($last = $links->getLast())) {
return $api->withUrl($last)->get(null, null, $cache);
}
if ($links && ($last = $links->getLast())) {
return $api->withUrl($last)->get(null, null, $cache);
}
- return Future\re
ject($api->getFuture(), $links
);
+ return Future\re
solve($api->getFuture(), null
);
}
}