Browse Source

Fixing windows failing test case on the debug function

Jose Lorenzo Rodriguez 14 years ago
parent
commit
abb370fe3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/basics.php

+ 1 - 1
lib/Cake/basics.php

@@ -76,7 +76,7 @@ function debug($var = false, $showHtml = null, $showFrom = true) {
 		$lineInfo = '';
 		if ($showFrom) {
 			$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'];
 		}
 		$html = <<<HTML