From 55c406e1b4e1213cf9227cf6c5d50760bc7689b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 23:42:26 +0200 Subject: [PATCH] [ViadeoCompanyBridge] add Bridge suffix to class name + code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/{ViadeoCompany.php => ViadeoCompanyBridge.php} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename bridges/{ViadeoCompany.php => ViadeoCompanyBridge.php} (82%) diff --git a/bridges/ViadeoCompany.php b/bridges/ViadeoCompanyBridge.php similarity index 82% rename from bridges/ViadeoCompany.php rename to bridges/ViadeoCompanyBridge.php index 756727b2..f2d96454 100644 --- a/bridges/ViadeoCompany.php +++ b/bridges/ViadeoCompanyBridge.php @@ -1,5 +1,5 @@ getInput('c'); + $link = $this->uri.'fr/company/'.$this->getInput('c'); - $html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request Viadeo.'); + $html = $this->getSimpleHTMLDOM($link) + or $this->returnServerError('Could not request Viadeo.'); foreach($html->find('//*[@id="company-newsfeed"]/ul/li') as $element) { $title = $element->find('p', 0)->innertext;