Skip to content

Commit

Permalink
Merge pull request #1026 from cakephp/5.x-fix-environment-panel
Browse files Browse the repository at this point in the history
fix environment panel not working with CakePHP 5.1
  • Loading branch information
markstory authored Sep 17, 2024
2 parents 9df73d2 + 9e0bdf6 commit 45a7de5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/Panel/EnvironmentPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ protected function _prepare(): array
$var = get_defined_constants(true);
$return['app'] = array_diff_key($var['user'], $return['cake'], $hiddenCakeConstants);

$includePaths = $this->_debug->includePaths();
foreach ($includePaths as $k => $v) {
$includePaths[$k] = Debugger::exportVarAsNodes($v);
}

// Included files data
$return['includePaths'] = $this->_debug->includePaths();
$return['includePaths'] = $includePaths;
$return['includedFiles'] = $this->prepareIncludedFiles();

return $return;
Expand Down
4 changes: 0 additions & 4 deletions webroot/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,6 @@ strong {
text-align: left;
}

/* Override styles in cake's default css */
.c-debug-table .cake-debug-string {
margin-right: 48px;
}
/* correct height to fit with environment panel */
.c-debug-table .cake-debug-copy {
padding: 5px 6px;
Expand Down

0 comments on commit 45a7de5

Please sign in to comment.