"REPOSITORY, UPGRADE/MDL-18354, upgrade/install repository plugins using moodle hook"
[moodle.git] / repository / local / db / install.php
CommitLineData
8763ab76 1<?php
2
3function xmldb_repository_local_install() {
4 global $CFG;
5 $result = true;
6 require_once($CFG->dirroot.'/repository/lib.php');
7 $local_plugin = new repository_type('local', array(), true);
8 if(!$id = $local_plugin->create(true)) {
9 $result = false;
10 }
11 return $result;
12}