Use @context property with external contexts.

This commit is contained in:
Dave Longley 2011-10-28 16:52:05 -04:00
parent a7206c8331
commit 4eb2832c11
1 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ function jsonld_resolve($input, $resolver)
if(!is_string($result)) if(!is_string($result))
{ {
// already deserialized // already deserialized
$urls[$url] = $result; $urls[$url] = $result->{'@context'};
} }
else else
{ {
@ -304,7 +304,7 @@ function jsonld_resolve($input, $resolver)
'Could not resolve @context URL ("$url"), ' . 'Could not resolve @context URL ("$url"), ' .
'malformed JSON detected.'); 'malformed JSON detected.');
} }
$urls[$url] = $tmp; $urls[$url] = $tmp->{'@context'};
} }
} }