mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Undoing an accidental check-in. These were some experiments trying to
solve a Windows problem (not successful yet).
This commit is contained in:
parent
1f33691c86
commit
2fb7c49f17
1 changed files with 1 additions and 10 deletions
|
@ -176,9 +176,6 @@
|
|||
}
|
||||
echo "<TABLE WIDTH=\"100%\" CELLPADDING=2 CELLSPACING=3 BORDER=0>";
|
||||
foreach ($enstring as $key => $envalue) {
|
||||
$envalue = trim($envalue);
|
||||
$envalue = str_replace("\n\r\n\r","\n",$envalue);
|
||||
$envalue = str_replace("\n\n","\n",$envalue);
|
||||
$envalue = nl2br(htmlspecialchars($envalue));
|
||||
$envalue = preg_replace('/(\$a\-\>[a-zA-Z0-9]*|\$a)/', '<b>$0</b>', $envalue); // Make variables bold.
|
||||
$envalue = str_replace("%%","%",$envalue);
|
||||
|
@ -187,13 +184,7 @@
|
|||
echo "<TD WIDTH=20% BGCOLOR=\"$THEME->cellheading\" NOWRAP VALIGN=TOP>$key</TD>";
|
||||
echo "<TD WIDTH=40% BGCOLOR=\"$THEME->cellheading\" VALIGN=TOP>$envalue</TD>";
|
||||
|
||||
$value = $string[$key];
|
||||
$value = trim($value);
|
||||
$value = str_replace("\n\r","\n",$value);
|
||||
$value = str_replace("\n\n","\n",$value);
|
||||
$value = str_replace("\n\n","\n",$value);
|
||||
$value = str_replace("\n\n","\n",$value);
|
||||
$value = str_replace("\\","",$value); // Delete all slashes
|
||||
$value = str_replace("\\","",$string[$key]); // Delete all slashes
|
||||
$value = str_replace("%%","%",$value);
|
||||
$value = htmlspecialchars($value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue