Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81bb901
)
"MDL-13766, added missing type option"
author
Dongsheng Cai
<unoter@gmail.com>
Tue, 3 Aug 2010 08:59:09 +0000
(08:59 +0000)
committer
Dongsheng Cai
<unoter@gmail.com>
Tue, 3 Aug 2010 08:59:09 +0000
(08:59 +0000)
repository/repository_callback.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/repository_callback.php
b/repository/repository_callback.php
index
ab73445
..
2b7095c
100755
(executable)
--- a/
repository/repository_callback.php
+++ b/
repository/repository_callback.php
@@
-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);
}