mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
The single quotes caused problem on the rare occasions that these
unset strings were being written to the database
This commit is contained in:
parent
fe3b0f3a2f
commit
bb515027b5
@ -1010,7 +1010,7 @@ function get_string($identifier, $module="", $a=NULL) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ($lang == "en") {
|
if ($lang == "en") {
|
||||||
return "[['$identifier']]";
|
return "[[$identifier]]";
|
||||||
|
|
||||||
} else { // Try looking in the english file.
|
} else { // Try looking in the english file.
|
||||||
$langfile = "$langpath/en/$module.php";
|
$langfile = "$langpath/en/$module.php";
|
||||||
@ -1021,7 +1021,7 @@ function get_string($identifier, $module="", $a=NULL) {
|
|||||||
eval($result);
|
eval($result);
|
||||||
return $resultstring;
|
return $resultstring;
|
||||||
} else {
|
} else {
|
||||||
return "[['$identifier']]";
|
return "[[$identifier]]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user