Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
"REPOSITORY, UPGRADE/MDL-18354, upgrade/install repository plugins using moodle hook"
[moodle.git]
/
repository
/
upload
/
db
/
install.php
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
}