Skip to content
Permalink
Browse files

Adding support to course/formats from within the editor. MDL-11842

Merged from MOODLE_19_STABLE
  • Loading branch information...
stronk7
stronk7 committed Oct 19, 2007
1 parent 83f8b30 commit df7cb979730d3436a46e6b236177f9155907d535
Showing with 12 additions and 0 deletions.
  1. +12 −0 admin/xmldb/actions/get_db_directories/get_db_directories.class.php
@@ -142,6 +142,18 @@ function invoke() {
}
}
/// Now, course formats (course/format/xxx/db)
if ($plugins = get_list_of_plugins('course/format', 'db')) {
foreach ($plugins as $plugin) {
$dbdir = new stdClass;
$dbdir->path = $CFG->dirroot . '/course/format/' . $plugin . '/db';
if (!isset($XMLDB->dbdirs[$dbdir->path])) {
$XMLDB->dbdirs[$dbdir->path] = $dbdir;
}
$XMLDB->dbdirs[$dbdir->path]->path_exists = file_exists($dbdir->path); //Update status
}
}
/// Now, enrolment plugins (enrol/xxx/db)
if ($plugins = get_list_of_plugins('enrol', 'db')) {
foreach ($plugins as $plugin) {

0 comments on commit df7cb97

Please sign in to comment.
You can’t perform that action at this time.