From d61bf02f18dc032d8d50b9873641a5ce010c0061 Mon Sep 17 00:00:00 2001 From: paca70 Date: Sat, 19 Apr 2003 17:45:50 +0000 Subject: [PATCH] Works now also with $a->something --- admin/lang.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/lang.php b/admin/lang.php index f11e99e1c4..a1746b7e83 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -177,9 +177,8 @@ echo ""; foreach ($enstring as $key => $envalue) { $envalue = nl2br(htmlspecialchars($envalue)); - $envalue = str_replace("\$a","\$a", $envalue); // Make variables bold + $envalue = preg_replace('/(\$a\-\>[a-zA-Z0-9]*|\$a)/', '$0', $envalue); // Make variables bold. $envalue = str_replace("%%","%",$envalue); - // TODO: It would be nice if all the $a->something variables were bold too echo ""; echo ""; -- 2.39.5
cellheading\" NOWRAP VALIGN=TOP>$key