Fix for get_string(), which was not building the path to the language files

for reports correctly.
This commit is contained in:
vyshane
2006-06-01 03:05:18 +00:00
parent 278bd07a17
commit b194dfbf15
+2 -2
View File
@@ -4756,8 +4756,8 @@ function get_string($identifier, $module='', $a=NULL) {
if (strpos($module, 'block_') === 0) { // It's a block lang file
$locations[] = $CFG->dirroot .'/blocks/'.substr($module, 6).'/lang/';
} else if (strpos($module, 'report_') === 0) { // It's a report lang file
$locations[] = $CFG->dirroot .'/admin/report/'.substr($module, 6).'/lang/';
$locations[] = $CFG->dirroot .'/course/report/'.substr($module, 6).'/lang/';
$locations[] = $CFG->dirroot .'/admin/report/'.substr($module, 7).'/lang/';
$locations[] = $CFG->dirroot .'/course/report/'.substr($module, 7).'/lang/';
} else { // It's a normal activity
$locations[] = $CFG->dirroot .'/mod/'.$module.'/lang/';
}