"MDL-13766, added missing type option"
authorDongsheng Cai <unoter@gmail.com>
Tue, 3 Aug 2010 08:59:09 +0000 (08:59 +0000)
committerDongsheng Cai <unoter@gmail.com>
Tue, 3 Aug 2010 08:59:09 +0000 (08:59 +0000)
repository/repository_callback.php

index ab73445..2b7095c 100755 (executable)
@@ -53,7 +53,7 @@ $type = $repository->type;
 if (file_exists($CFG->dirroot.'/repository/'.$type.'/lib.php')) {
     require_once($CFG->dirroot.'/repository/'.$type.'/lib.php');
     $classname = 'repository_' . $type;
-    $repo = new $classname($repo_id, $repository->contextid);
+    $repo = new $classname($repo_id, $repository->contextid, array('type'=>$type));
 } else {
     print_error('invalidplugin', 'repository', $type);
 }