diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2011-03-04 12:54:40 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2011-03-04 12:54:40 +0300 |
commit | 1a47ec647b9b949fd6bad8d0b86c6b25ccd33a3c (patch) | |
tree | 82b4855953593e8b40c2597485293d04c26b1362 /plugins/Referers | |
parent | 3481590622ffcd838b0dbe21d48dfbf2be0c36a8 (diff) | |
parent | 88b58f942ac1340f6757fdc50c62013bb844c0da (diff) |
Diffstat (limited to 'plugins/Referers')
-rw-r--r-- | plugins/Referers/Controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Referers/Controller.php b/plugins/Referers/Controller.php index c8b3f02fef..b3dbed53e2 100644 --- a/plugins/Referers/Controller.php +++ b/plugins/Referers/Controller.php @@ -352,6 +352,8 @@ class Piwik_Referers_Controller extends Piwik_Controller // Then it writes the list of best keywords in a HTML list function DisplayTopKeywords($url = "") { + // Do not spend more than 1 second fetching the data + @ini_set("default_socket_timeout", $timeout = 1); // Get the Keywords data $url = empty($url) ? "http://". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] : $url; $api = "'.$api.'&url=" . urlencode($url); |