]> git.mjollnir.org Git - moodle.git/commitdiff
fixes a bug in resource_get_physical_file(...) when making a ResourceDocument object.
authordiml <diml>
Sun, 7 Oct 2007 20:15:32 +0000 (20:15 +0000)
committerdiml <diml>
Sun, 7 Oct 2007 20:15:32 +0000 (20:15 +0000)
search/documents/resource_document.php

index 53dc4ac10ea508bea3ffca5510ec8cb9ac912537..40c2752c68d03e040e9fea5e97d3ca518b42d7fc 100644 (file)
@@ -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);