From: paca70 Date: Sat, 19 Apr 2003 17:45:50 +0000 (+0000) Subject: Works now also with $a->something X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d61bf02f18dc032d8d50b9873641a5ce010c0061;p=moodle.git Works now also with $a->something --- 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 "";
cellheading\" NOWRAP VALIGN=TOP>$key