Fix for get_string(), which was not building the path to the language files
for reports correctly.
This commit is contained in:
+2
-2
@@ -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/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user