summaryrefslogtreecommitdiff
path: root/plugins/af_unburn
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-21 22:27:35 +0400
committerAndrew Dolgov <[email protected]>2013-02-21 22:27:35 +0400
commit8055097ca202182b37078aaf4376f57e23fcfe61 (patch)
tree9dcb190c7d3f93ed4ce9418a0ce517b3b91d9139 /plugins/af_unburn
parentb30abdadd2f7d846d40eaa2ddb6343291df30a91 (diff)
af_unburn: set timeout properly (refs #540)
Diffstat (limited to 'plugins/af_unburn')
-rw-r--r--plugins/af_unburn/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php
index d09e2ad36..0cf945f8d 100644
--- a/plugins/af_unburn/init.php
+++ b/plugins/af_unburn/init.php
@@ -29,7 +29,7 @@ class Af_Unburn extends Plugin {
strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) {
$ch = curl_init($article["link"]);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
+ curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);