From 2f33e8f03197cae43a900c5215d671b02534ecb3 Mon Sep 17 00:00:00 2001 From: diml Date: Sun, 7 Oct 2007 20:15:32 +0000 Subject: [PATCH] fixes a bug in resource_get_physical_file(...) when making a ResourceDocument object. --- search/documents/resource_document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/documents/resource_document.php b/search/documents/resource_document.php index 53dc4ac10e..40c2752c68 100644 --- a/search/documents/resource_document.php +++ b/search/documents/resource_document.php @@ -187,7 +187,7 @@ function resource_get_physical_file(&$resource, $context_id, $getsingle, &$docum $resource->alltext = $function_name($resource); if (!empty($resource->alltext)){ if ($getsingle){ - return new ResourceSearchDocument(get_object_vars($resource)); + return new ResourceSearchDocument(get_object_vars($resource), $context_id); } else{ $documents[] = new ResourceSearchDocument(get_object_vars($resource), $context_id); -- 2.39.5