mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
FIxed language file location, merged from 1.8 MDL-10920
This commit is contained in:
parent
43b49d039d
commit
30d76014d8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user