]> git.mjollnir.org Git - moodle.git/commitdiff
Make $a bold so it's easier to see
authormartin <martin>
Thu, 26 Sep 2002 03:36:16 +0000 (03:36 +0000)
committermartin <martin>
Thu, 26 Sep 2002 03:36:16 +0000 (03:36 +0000)
admin/lang.php

index a52f188e0380f433d92fa134580baebbb9e8059d..6ae710736948093154a601a0ff1fd0f88735734e 100644 (file)
             echo "<TABLE WIDTH=\"100%\" CELLPADDING=2 CELLSPACING=3 BORDER=0>";
             foreach ($enstring as $key => $envalue) {
                 $envalue = nl2br(htmlentities($envalue));
+                $envalue = str_replace("\$a","<B>\$a</B>", $envalue);  // Make variables bold
+                // TODO:  It would be nice if all the $a->something variables were bold too
+
                 echo "<TR>";
                 echo "<TD WIDTH=20% BGCOLOR=\"$THEME->cellheading\" NOWRAP VALIGN=TOP>$key</TD>";
                 echo "<TD WIDTH=40% BGCOLOR=\"$THEME->cellheading\" VALIGN=TOP>$envalue</TD>";
 
-                $value = str_replace("\\","",$string[$key]);               // Delete all slashes
+                $value = str_replace("\\","",$string[$key]);          // Delete all slashes
                 $value = htmlentities($value);
                 if ($editable) {
                     echo "<TD WIDTH=40% VALIGN=TOP>";