mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +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 {
|
||||
if ($lang == "en") {
|
||||
return "[['$identifier']]";
|
||||
return "[[$identifier]]";
|
||||
|
||||
} else { // Try looking in the english file.
|
||||
$langfile = "$langpath/en/$module.php";
|
||||
@ -1021,7 +1021,7 @@ function get_string($identifier, $module="", $a=NULL) {
|
||||
eval($result);
|
||||
return $resultstring;
|
||||
} else {
|
||||
return "[['$identifier']]";
|
||||
return "[[$identifier]]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user