Fixing windows failing test case on the debug function

This commit is contained in:
Jose Lorenzo Rodriguez 2012-01-07 01:39:40 -04:30
parent ba097d404f
commit abb370fe3f

View file

@ -76,7 +76,7 @@ function debug($var = false, $showHtml = null, $showFrom = true) {
$lineInfo = ''; $lineInfo = '';
if ($showFrom) { if ($showFrom) {
$calledFrom = debug_backtrace(); $calledFrom = debug_backtrace();
$file = substr(str_replace(ROOT, '', $calledFrom[0]['file']), 1); $file = substr(str_ireplace(ROOT, '', $calledFrom[0]['file']), 1);
$line = $calledFrom[0]['line']; $line = $calledFrom[0]['line'];
} }
$html = <<<HTML $html = <<<HTML