From: vyshane Date: Thu, 1 Jun 2006 03:10:17 +0000 (+0000) Subject: Fix for get_string(), which was not building path to report language files X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=69c9c3e696456959fa3934747f5fb6c2a65f00c3;p=moodle.git Fix for get_string(), which was not building path to report language files correctly. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index ff8d5aab13..9eac003c0d 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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/'; }