mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-7401 Course format database/backup/lang/stylesheet/capability support
This commit is contained in:
parent
b7e771ce20
commit
ae628043a0
15 changed files with 344 additions and 10 deletions
|
@ -4310,6 +4310,8 @@ function get_string($identifier, $module='', $a=NULL, $extralocations=NULL) {
|
|||
} else if (strpos($module, 'report_') === 0) { // It's a report lang file
|
||||
$locations[] = $CFG->dirroot .'/'.$CFG->admin.'/report/'.substr($module, 7).'/lang/';
|
||||
$locations[] = $CFG->dirroot .'/course/report/'.substr($module, 7).'/lang/';
|
||||
} else if (strpos($module, 'format_') === 0) { // Course format
|
||||
$locations[] = $CFG->dirroot .'/course/format/'.substr($module,7).'/lang/';
|
||||
} else { // It's a normal activity
|
||||
$locations[] = $CFG->dirroot .'/mod/'.$module.'/lang/';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue