diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-09-30 21:18:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-09-30 21:18:27 +0200 |
commit | 2e128befdac4ee892d82e09fc6c299ec6e8aad29 (patch) | |
tree | b39f36b5ce98455050f9fc151e6bc32f7b10536a /utility | |
parent | 5e7ddcb4e747ff9b1a8daed1a0e00d66616503e3 (diff) |
set the useragent when getting the full body for the xpath enhancer
Diffstat (limited to 'utility')
-rw-r--r-- | utility/simplepiefilefactory.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utility/simplepiefilefactory.php b/utility/simplepiefilefactory.php index 13b56dc9e..5f1867c38 100644 --- a/utility/simplepiefilefactory.php +++ b/utility/simplepiefilefactory.php @@ -28,8 +28,8 @@ namespace OCA\News\Utility; class SimplePieFileFactory { - public function getFile($url, $timeout) { - return new \SimplePie_File($url, $timeout); + public function getFile($url, $timeout, $userAgent = null) { + return new \SimplePie_File($url, $timeout, null, null, $userAgent); } -}
\ No newline at end of file +} |