From 65a9c2b0bc18ffef9517f174f1034368c8e96d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Enguehard?= Date: Wed, 23 Dec 2015 16:14:28 +0100 Subject: [PATCH] maj LinkedIn & Viadeo --- bridges/LinkedInCompany.php | 6 +++--- bridges/ViadeoCompany.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bridges/LinkedInCompany.php b/bridges/LinkedInCompany.php index 185fee9e..476cfc81 100644 --- a/bridges/LinkedInCompany.php +++ b/bridges/LinkedInCompany.php @@ -6,7 +6,7 @@ class LinkedInCompany extends BridgeAbstract{ $this->maintainer = "regisenguehard"; $this->name = "LinkedIn Company"; $this->uri = "https://www.linkedin.com/"; - $this->description = "Returns most recent actus from Company on LinkedIn."; + $this->description = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/apple)"; $this->update = "2015-12-22"; $this->parameters[] = @@ -20,7 +20,7 @@ class LinkedInCompany extends BridgeAbstract{ public function collectData(array $param){ $html = ''; - $link = 'https://www.linkedin.com/company/'.urlencode($param[c]); + $link = 'https://www.linkedin.com/company/'.$param[c]; $html = file_get_html($link) or $this->returnError('Could not request LinkedIn.', 404); @@ -47,6 +47,6 @@ class LinkedInCompany extends BridgeAbstract{ } public function getCacheDuration(){ - return 0; // 6 hours + return 21600; // 6 hours } } diff --git a/bridges/ViadeoCompany.php b/bridges/ViadeoCompany.php index 979bdf52..6b474f57 100644 --- a/bridges/ViadeoCompany.php +++ b/bridges/ViadeoCompany.php @@ -6,7 +6,7 @@ class ViadeoCompany extends BridgeAbstract{ $this->maintainer = "regisenguehard"; $this->name = "Viadeo Company"; $this->uri = "https://www.viadeo.com/"; - $this->description = "Returns most recent actus from Company on Viadeo."; + $this->description = "Returns most recent actus from Company on Viadeo. (http://www.viadeo.com/fr/company/apple)"; $this->update = "2015-12-22"; $this->parameters[] =