summaryrefslogtreecommitdiffstats
path: root/articleenhancer
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 16:10:48 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 22:52:27 +0200
commit643fa4624dd7ba2db1349f16131bf330aeee3387 (patch)
tree73bc787a3eb1ed5f53ab932187546c980ac50bb5 /articleenhancer
parentefe9db1e064c9736fe35c27040ee60fa28ca8d4d (diff)
port to internal controller, some routes are still broken
Diffstat (limited to 'articleenhancer')
-rw-r--r--articleenhancer/xpatharticleenhancer.php7
1 files changed, 4 insertions, 3 deletions
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();
}