]> git.mjollnir.org Git - moodle.git/commitdiff
The single quotes caused problem on the rare occasions that these
authormoodler <moodler>
Sat, 24 May 2003 02:34:29 +0000 (02:34 +0000)
committermoodler <moodler>
Sat, 24 May 2003 02:34:29 +0000 (02:34 +0000)
unset strings were being written to the database

lib/moodlelib.php

index 62a1309d43f2b05ef5122b93d919b7db978fc7bf..a7cbfb5ff479d478a70e35e1073b1de831d37f5d 100644 (file)
@@ -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]]";
             }
         }
     }