mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing windows failing test case on the debug function
This commit is contained in:
parent
ba097d404f
commit
abb370fe3f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue