Converging on 4px for border-radius.

Updating debug() to output a tiny bit more HTML so it can be made sexy.
This commit is contained in:
mark_story 2011-09-02 16:45:09 +01:00
parent 1c40a37439
commit ca078d9a25
3 changed files with 38 additions and 17 deletions

View file

@ -82,10 +82,12 @@ function debug($var = false, $showHtml = null, $showFrom = true) {
$line = $calledFrom[0]['line'];
}
$html = <<<HTML
<strong>%s</strong> (line <strong>%s</strong>)
<div class="cake-debug-output">
<span><strong>%s</strong> (line <strong>%s</strong>)</span>
<pre class="cake-debug">
%s
</pre>
</div>
HTML;
$text = <<<TEXT
@ -104,7 +106,7 @@ TEXT;
}
$var = print_r($var, true);
if ($showHtml) {
$var = str_replace(array('<', '>'), array('&lt;', '&gt;'), $var);
$var = htmlentities($var);
}
printf($template, $file, $line, $var);
}