Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Referers/Controller.php')
-rw-r--r--plugins/Referers/Controller.php2
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);