forked from friendica/php-json-ld
Add global declarations.
This commit is contained in:
parent
2ff57e973e
commit
9b557af763
|
@ -142,6 +142,7 @@ function jsonld_to_rdf($input, $options=array()) {
|
|||
}
|
||||
|
||||
/** The default JSON-LD URL resolver. */
|
||||
global $jsonld_default_url_resolver;
|
||||
$jsonld_default_url_resolver = null;
|
||||
|
||||
/**
|
||||
|
@ -182,7 +183,8 @@ function jsonld_resolve_url($url) {
|
|||
return $result;
|
||||
}
|
||||
|
||||
/** Registered global RDF Statement parsers hashed by content-type. */
|
||||
/** Registered global RDF Statement parsers hashed by content-type. */
|
||||
global $jsonld_rdf_parsers;
|
||||
$jsonld_rdf_parsers = new stdClass();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue