MDL-19184, MDL-19212 - refactoring, cleanup and improvements in text editors support; localization support is not finished, inline docs incomplete, expect more commits soon

This commit is contained in:
skodak
2009-05-16 20:53:21 +00:00
parent f9e57c6e72
commit 5ca3c8386f
511 changed files with 5091 additions and 11914 deletions
+8
View File
@@ -3069,6 +3069,10 @@ function load_capability_def($component) {
$defpath = $CFG->dirroot.'/course/'.$component.'/db/access.php';
$varprefix = $compparts[0].'_'.$compparts[1];
} else if ($compparts[0] == 'editor') {
$defpath = $CFG->dirroot.'/lib/editor/'.$compparts[1].'/db/access.php';
$varprefix = $compparts[0].'_'.$compparts[1];
} else if ($compparts[0] == 'gradeimport') {
$defpath = $CFG->dirroot.'/grade/import/'.$compparts[1].'/db/access.php';
$varprefix = $compparts[0].'_'.$compparts[1];
@@ -3914,6 +3918,10 @@ function get_capability_string($capabilityname) {
$string = get_string($stringname, 'format_'.$componentname);
break;
case 'format':
$string = get_string($stringname, 'editor_'.$componentname);
break;
case 'gradeexport':
$string = get_string($stringname, 'gradeexport_'.$componentname);
break;