forked from blallo/rss-bridge
Return items starting at the end, not the beginning when working with limits
This commit is contained in:
parent
2e4e0077a8
commit
0e1b84263e
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class MangareaderBridge extends BridgeAbstract{
|
||||||
$query = "(.//*[@id='listing']//tr)[position() > 1]";
|
$query = "(.//*[@id='listing']//tr)[position() > 1]";
|
||||||
|
|
||||||
if($limit !== -1){
|
if($limit !== -1){
|
||||||
$query = "(.//*[@id='listing']//tr)[position() > 1][position() <= " . $limit . "]";
|
$query = "(.//*[@id='listing']//tr)[position() > 1][position() > last() - " . $limit . "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
$chapters = $xpath->query($query);
|
$chapters = $xpath->query($query);
|
||||||
|
|
Loading…
Reference in a new issue