]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for get_string(), which was not building path to report language files
authorvyshane <vyshane>
Thu, 1 Jun 2006 03:10:17 +0000 (03:10 +0000)
committervyshane <vyshane>
Thu, 1 Jun 2006 03:10:17 +0000 (03:10 +0000)
correctly.

lib/moodlelib.php

index ff8d5aab13bd56789b39f50583b6940000d008c7..9eac003c0d9a7cedb40b66856ba0dcd5ba257c07 100644 (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/';
         }