fix regression in jsonld_document_loader()

This commit is contained in:
Mario
2023-09-16 10:51:28 +00:00
parent df60be423a
commit 3708c1ac8c

View File

@@ -2093,9 +2093,7 @@ function jsonld_document_loader($url) {
if (file_exists($filename) && filemtime($filename) > time() - (12 * 60 * 60)) {
logger('loading ' . $filename . ' from recent cache');
$doc->document = file_get_contents($filename);
return $doc;
return file_get_contents($filename);
}
$r = jsonld_default_document_loader($url);
@@ -2112,8 +2110,7 @@ function jsonld_document_loader($url) {
if (file_exists($filename)) {
logger('loading ' . $filename . ' from longterm cache');
$doc->document = file_get_contents($filename);
return $doc;
return file_get_contents($filename);
}
else {
logger($filename . ' does not exist and cannot be loaded');