]> git.mjollnir.org Git - moodle.git/commitdiff
Undoing an accidental check-in. These were some experiments trying to
authormoodler <moodler>
Tue, 6 May 2003 16:06:56 +0000 (16:06 +0000)
committermoodler <moodler>
Tue, 6 May 2003 16:06:56 +0000 (16:06 +0000)
solve a Windows problem (not successful yet).

admin/lang.php

index 9605cb17859f7f0aa214f442c658b2acbbf3e974..763c3fe23b184fbd781e1b6d7d026fbc2afed756 100644 (file)
             }
             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\-\&gt;[a-zA-Z0-9]*|\$a)/', '<b>$0</b>', $envalue);  // Make variables bold. 
                 $envalue = str_replace("%%","%",$envalue);
                 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);