From bb515027b5c7630f5b1862ccba0d81ad27a77f3e Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 24 May 2003 02:34:29 +0000 Subject: [PATCH] The single quotes caused problem on the rare occasions that these unset strings were being written to the database --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 62a1309d43..a7cbfb5ff4 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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]]"; } } } -- 2.39.5