diff --git a/bridges/AcrimedBridge.php b/bridges/AcrimedBridge.php index 7d3fdcce..7bc73176 100644 --- a/bridges/AcrimedBridge.php +++ b/bridges/AcrimedBridge.php @@ -7,8 +7,21 @@ class AcrimedBridge extends FeedExpander { const CACHE_TIMEOUT = 4800; //2hours const DESCRIPTION = 'Returns the newest articles'; + const PARAMETERS = [ + [ + 'limit' => [ + 'name' => 'limit', + 'type' => 'number', + 'defaultValue' => -1, + ] + ] + ]; + public function collectData(){ - $this->collectExpandableDatas(static::URI . 'spip.php?page=backend'); + $this->collectExpandableDatas( + static::URI . 'spip.php?page=backend', + $this->getInput('limit') + ); } protected function parseItem($newsItem){