mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[Mangareader] Replace global constant with 'defaultValue'
This commit is contained in:
parent
013a4c0428
commit
4c96aab832
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
define('MANGAREADER_LIMIT', 10); // The default limit
|
||||
class MangareaderBridge extends BridgeAbstract{
|
||||
|
||||
const MAINTAINER = "logmanoriginal";
|
||||
@ -69,7 +68,7 @@ class MangareaderBridge extends BridgeAbstract{
|
||||
'limit'=>array(
|
||||
'name'=>'Limit',
|
||||
'type'=>'number',
|
||||
'exampleValue'=>10,
|
||||
'defaultValue'=>10,
|
||||
'title'=>'Number of items to return [-1 returns all]'
|
||||
)
|
||||
)
|
||||
@ -154,7 +153,7 @@ class MangareaderBridge extends BridgeAbstract{
|
||||
case 'Get manga updates':
|
||||
$limit = $this->getInput('limit');
|
||||
if(empty($limit)){
|
||||
$limit = MANGAREADER_LIMIT;
|
||||
$limit = self::PARAMETERS[$this->queriedContext]['limit']['defaultValue'];
|
||||
}
|
||||
|
||||
$this->request = $xpath->query(".//*[@id='mangaproperties']//*[@class='aname']")->item(0)->nodeValue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user