From 643fa4624dd7ba2db1349f16131bf330aeee3387 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 9 Apr 2014 16:10:48 +0200 Subject: port to internal controller, some routes are still broken --- articleenhancer/xpatharticleenhancer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'articleenhancer') diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php index 586f65151..50dc402cc 100644 --- a/articleenhancer/xpatharticleenhancer.php +++ b/articleenhancer/xpatharticleenhancer.php @@ -25,8 +25,9 @@ namespace OCA\News\ArticleEnhancer; -use \OCA\News\Utility\SimplePieAPIFactory; use \OCA\News\Db\Item; +use \OCA\News\Utility\SimplePieAPIFactory; +use \OCA\News\Utility\Config; class XPathArticleEnhancer implements ArticleEnhancer { @@ -45,10 +46,10 @@ class XPathArticleEnhancer implements ArticleEnhancer { * @param int $maximumTimeout maximum timeout in seconds, defaults to 10 sec */ public function __construct(SimplePieAPIFactory $fileFactory, - array $regexXPathPair, $maximumTimeout=10){ + array $regexXPathPair, Config $config){ $this->regexXPathPair = $regexXPathPair; $this->fileFactory = $fileFactory; - $this->maximumTimeout = $maximumTimeout; + $this->maximumTimeout = $config->getFeedFetcherTimeout(); } -- cgit v1.2.3