Skip to content

Commit

Permalink
Reapply MDL-12378 to current version for XHTML compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 15, 2008
1 parent a41ba92 commit 4dd6dd7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/adodb/adodb-lib.inc.php
Expand Up @@ -1082,11 +1082,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();
Expand Down Expand Up @@ -1172,4 +1176,4 @@ function _adodb_find_from($sql)
}
*/

?>
?>

0 comments on commit 4dd6dd7

Please sign in to comment.