Add default base option.

This commit is contained in:
Dave Longley 2013-08-06 13:54:59 -04:00
parent 63d61f1c4d
commit c0280e53e4

View file

@ -1164,6 +1164,7 @@ class JsonLdProcessor {
*/ */
public function processContext($active_ctx, $local_ctx, $options) { public function processContext($active_ctx, $local_ctx, $options) {
self::setdefaults($options, array( self::setdefaults($options, array(
'base' => '',
'documentLoader' => 'jsonld_default_document_loader')); 'documentLoader' => 'jsonld_default_document_loader'));
// return initial context early for null context // return initial context early for null context