From 4c96aab8321b79e5d41200e7c2e51854d394a18b Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sat, 3 Sep 2016 20:03:06 +0200 Subject: [PATCH] [Mangareader] Replace global constant with 'defaultValue' --- bridges/MangareaderBridge.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bridges/MangareaderBridge.php b/bridges/MangareaderBridge.php index ce93ed3..23a8dea 100644 --- a/bridges/MangareaderBridge.php +++ b/bridges/MangareaderBridge.php @@ -1,5 +1,4 @@ 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;