[KununuBridge] Fix broken page layout and sort reviews

This commit is contained in:
logmanoriginal 2018-06-30 09:53:01 +02:00
parent 90dc968fd1
commit bca79d3f88

View file

@ -58,7 +58,7 @@ class KununuBridge extends BridgeAbstract {
break;
}
return self::URI . $site . '/' . $company . '/' . $section;
return self::URI . $site . '/' . $company . '/' . $section . '?sort=update_time_desc';
}
return parent::getURI();
@ -190,11 +190,11 @@ class KununuBridge extends BridgeAbstract {
* Returns the URI from a given article
*/
private function extractArticleUri($article){
$anchor = $article->find('ku-company-review-more', 0);
$anchor = $article->find('h1.review-title a', 0);
if(is_null($anchor))
returnServerError('Cannot find article URI!');
return self::URI . $anchor->{'review-url'};
return self::URI . $anchor->href;
}
/**