Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | function xmldb_repository_upload_install() { | |
4 | global $CFG; | |
5 | $result = true; | |
6 | require_once($CFG->dirroot.'/repository/lib.php'); | |
7 | $upload_plugin = new repository_type('upload', array(), true); | |
8 | if (!$id = $upload_plugin->create(true)) { | |
9 | $result = false; | |
10 | } | |
11 | return $result; | |
12 | } |