MDL-20712 using just $capablities for capability definition array, all other files...
[moodle.git] / repository / upload / db / install.php
CommitLineData
8763ab76 1<?php
2
3function 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}