forked from blallo/rss-bridge
[KununuBridge] Fix broken page layout and sort reviews
This commit is contained in:
parent
90dc968fd1
commit
bca79d3f88
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue