From 7b73f3217f1239a1f5784d261e13a9c49e3db73b Mon Sep 17 00:00:00 2001 From: Kirill Kotikov Date: Sat, 21 Mar 2020 05:01:45 +0300 Subject: [PATCH] Fix page request --- bridges/GithubTrendingBridge.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridges/GithubTrendingBridge.php b/bridges/GithubTrendingBridge.php index 96a04aa9..534caa10 100644 --- a/bridges/GithubTrendingBridge.php +++ b/bridges/GithubTrendingBridge.php @@ -601,6 +601,9 @@ class GithubTrendingBridge extends BridgeAbstract { $params = array('since' => urlencode($this->getInput('date_range'))); $url = self::URI . '/' . $this->getInput('language') . '?' . http_build_query($params); + $html = getSimpleHTMLDOM($url) + or returnServerError('Error while downloading the website content'); + $this->items = []; foreach($html->find('.Box-row') as $element) { $item = array();