Add global declarations.

This commit is contained in:
Dave Longley 2012-09-19 15:24:22 -04:00
parent 2ff57e973e
commit 9b557af763

View file

@ -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();
/**