"MDL-13766, fixed incorrect parameter of get_context_instance_by_id"

This commit is contained in:
dongsheng
2009-08-14 08:47:47 +00:00
parent 63bfcc8f60
commit dfac37cc37
+1 -1
View File
@@ -623,7 +623,7 @@ abstract class repository {
$is_supported = true;
$repository = new $classname($repo->id, $repo->contextid, $options, $repo->readonly);
$context = get_context_instance_by_id(CONTEXT_SYSTEM, $repo->contextid);
$context = get_context_instance_by_id($repo->contextid);
if (empty($repository->super_called)) {
debugging('parent::__construct must be called by '.$repo->repositorytype.' plugin.');
} else {