FIxed language file location, merged from 1.8 MDL-10920

This commit is contained in:
moodler 2007-08-21 03:38:45 +00:00
parent 43b49d039d
commit 30d76014d8

View File

@ -1604,7 +1604,7 @@ function data_convert_to_roles($data, $teacherroles=array(), $studentroles=array
function data_preset_name($shortname, $path) {
/// We are looking inside the preset itself as a first choice, but also in normal data directory
$string = get_string('presetname'.$shortname, 'data', NULL, $path.'/lang/');
$string = get_string('modulename', 'datapreset_'.$shortname);
if (substr($string, 0, 1) == '[') {
return $shortname;