diff --git a/bridges/ViadeoCompany.php b/bridges/ViadeoCompanyBridge.php similarity index 82% rename from bridges/ViadeoCompany.php rename to bridges/ViadeoCompanyBridge.php index 756727b..f2d9645 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;