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

View file

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