]> git.mjollnir.org Git - moodle.git/commitdiff
Look for languages in report directories too
authormoodler <moodler>
Thu, 9 Mar 2006 08:27:53 +0000 (08:27 +0000)
committermoodler <moodler>
Thu, 9 Mar 2006 08:27:53 +0000 (08:27 +0000)
lib/moodlelib.php

index 3cd275b0d35e17d4b50ac0cf681660f39d637f35..fb611b465301d3760194fdd613b48640cf7e90af 100644 (file)
@@ -4641,6 +4641,9 @@ function get_string($identifier, $module='', $a=NULL) {
     if ($module != 'moodle') {
         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/';
         } else {                                // It's a normal activity
             $locations[] =  $CFG->dirroot .'/mod/'.$module.'/lang/';
         }