fix for MDL-9137, adding support for gradebook plugins for db, cron, events, permission structures etc
This commit is contained in:
+10
-1
@@ -2406,10 +2406,19 @@ function load_capability_def($component) {
|
||||
's/'.$compparts[1].'/db/access.php';
|
||||
$varprefix = $compparts[0].'_'.$compparts[1];
|
||||
} else if ($compparts[0] == 'format') {
|
||||
// Similar to the above, course formats are 'format' while they
|
||||
// Similar to the above, course formats are 'format' while they
|
||||
// are stored in 'course/format'.
|
||||
$defpath = $CFG->dirroot.'/course/'.$component.'/db/access.php';
|
||||
$varprefix = $compparts[0].'_'.$compparts[1];
|
||||
} else if ($compparts[0] == 'gradeimport') {
|
||||
$defpath = $CFG->dirroot.'/grade/import/'.$component.'/db/access.php';
|
||||
$varprefix = $component;
|
||||
} else if ($compparts[0] == 'gradeexport') {
|
||||
$defpath = $CFG->dirroot.'/grade/export/'.$component.'/db/access.php';
|
||||
$varprefix = $component;
|
||||
} else if ($compparts[0] == 'gradereport') {
|
||||
$defpath = $CFG->dirroot.'/grade/report/'.$component.'/db/access.php';
|
||||
$varprefix = $component;
|
||||
} else {
|
||||
$defpath = $CFG->dirroot.'/'.$component.'/db/access.php';
|
||||
$varprefix = str_replace('/', '_', $component);
|
||||
|
||||
Reference in New Issue
Block a user