aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/network.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php
index 79c28de01..b8570d4f4 100644
--- a/include/network.php
+++ b/include/network.php
@@ -2092,9 +2092,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);
@@ -2111,8 +2109,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');