Skip to content

Commit

Permalink
Make $a bold so it's easier to see
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Sep 26, 2002
1 parent ef5e5d8 commit 43dc944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,14 @@
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>";
Expand Down

0 comments on commit 43dc944

Please sign in to comment.