]> git.mjollnir.org Git - moodle.git/commitdiff
Prevent XHTML breackage. MDL-12378
authorstronk7 <stronk7>
Sun, 9 Dec 2007 18:20:55 +0000 (18:20 +0000)
committerstronk7 <stronk7>
Sun, 9 Dec 2007 18:20:55 +0000 (18:20 +0000)
Merged from MOODLE_19_STABLE

lib/adodb/adodb-lib.inc.php

index e4ef8124a942f4e2cf56c05ee9478c4a41b15e01..222ecf064b8450aa249e970355825ed815e33b12 100644 (file)
@@ -1058,11 +1058,15 @@ function _adodb_backtrace($printOrArr=true,$levels=9999,$skippy=0)
        if (!function_exists('debug_backtrace')) return '';
         
        $html =  (isset($_SERVER['HTTP_USER_AGENT']));
-       $fmt =  ($html) ? "</font><font color=#808080 size=-1> %% line %4d, file: <a href=\"file:/%s\">%s</a></font>" : "%% line %4d, file: %s";
+// moodle change start - see readme_moodle.txt
+       $fmt =  ($html) ? "</font><font color=\"#808080\" size=\"-1\"> %% line %4d, file: <a href=\"file:/%s\">%s</a></font>" : "%% line %4d, file: %s";
+// moodle change end
 
        $MAXSTRLEN = 128;
 
-       $s = ($html) ? '<pre align=left>' : '';
+// moodle change start - see readme_moodle.txt
+       $s = ($html) ? '<pre align="left">' : '';
+// moodle change end
        
        if (is_array($printOrArr)) $traceArr = $printOrArr;
        else $traceArr = debug_backtrace();
@@ -1148,4 +1152,4 @@ function _adodb_find_from($sql)
 }
 */
 
-?>
\ No newline at end of file
+?>