From bca79d3f88804485b2d89564617a8680b520e9a3 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sat, 30 Jun 2018 09:53:01 +0200 Subject: [PATCH] [KununuBridge] Fix broken page layout and sort reviews --- bridges/KununuBridge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/KununuBridge.php b/bridges/KununuBridge.php index c0cf68a8..85f7c7bc 100644 --- a/bridges/KununuBridge.php +++ b/bridges/KununuBridge.php @@ -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; } /**