diff options
Diffstat (limited to 'articleenhancer')
-rw-r--r-- | articleenhancer/xpatharticleenhancer.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php index 99aa61177..586f65151 100644 --- a/articleenhancer/xpatharticleenhancer.php +++ b/articleenhancer/xpatharticleenhancer.php @@ -57,7 +57,13 @@ class XPathArticleEnhancer implements ArticleEnhancer { foreach($this->regexXPathPair as $regex => $search) { if(preg_match($regex, $item->getUrl())) { - $file = $this->fileFactory->getFile($item->getUrl(), $this->maximumTimeout, "Mozilla/5.0 AppleWebKit"); + $file = $this->fileFactory->getFile( + $item->getUrl(), + $this->maximumTimeout, + 5, + null, + "Mozilla/5.0 AppleWebKit" + ); // convert encoding by detecting charset from header $contentType = $file->headers['content-type']; |