mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
FIxed language file location, merged from 1.8 MDL-10920
This commit is contained in:
parent
43b49d039d
commit
30d76014d8
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,7 @@ function data_convert_to_roles($data, $teacherroles=array(), $studentroles=array
|
||||||
function data_preset_name($shortname, $path) {
|
function data_preset_name($shortname, $path) {
|
||||||
|
|
||||||
/// We are looking inside the preset itself as a first choice, but also in normal data directory
|
/// 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) == '[') {
|
if (substr($string, 0, 1) == '[') {
|
||||||
return $shortname;
|
return $shortname;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue