mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-25 09:22:01 +02:00
refactor: return proper response object (#4169)
This commit is contained in:
@@ -669,11 +669,11 @@ class ItakuBridge extends BridgeAbstract
|
||||
if ($cache) {
|
||||
$data = $this->loadCacheValue($url);
|
||||
if (is_null($data)) {
|
||||
$data = getContents($url, $httpHeaders, $curlOptions) or returnServerError("Could not load $url");
|
||||
$data = getContents($url, $httpHeaders, $curlOptions);
|
||||
$this->saveCacheValue($url, $data);
|
||||
}
|
||||
} else {
|
||||
$data = getContents($url, $httpHeaders, $curlOptions) or returnServerError("Could not load $url");
|
||||
$data = getContents($url, $httpHeaders, $curlOptions);
|
||||
}
|
||||
return json_decode($data, true);
|
||||
} else { //get simpleHTMLDOM object
|
||||
|
Reference in New Issue
Block a user