Skip to content

Commit 9805136

Browse files
authored
Merge pull request #639 from yjerem/2.2-fix-array-constants
Use Debugger to output constant values (on 2.2)
2 parents c864f21 + 96e3b83 commit 9805136

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

View/Elements/environment_panel.ctp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* @link http://cakephp.org CakePHP(tm) Project
1717
* @license http://www.opensource.org/licenses/mit-license.php MIT License
1818
*/
19+
App::uses('Debugger', 'Utility');
1920
?>
2021
<h2><?php echo __d('debug_kit', 'App Constants'); ?></h2>
2122
<?php
@@ -24,7 +25,7 @@
2425
foreach ($content['app'] as $key => $val) {
2526
$cakeRows[] = array(
2627
$key,
27-
$val
28+
Debugger::exportVar($val)
2829
);
2930
}
3031
$headers = array('Constant', 'Value');
@@ -40,7 +41,7 @@
4041
foreach ($content['cake'] as $key => $val) {
4142
$cakeRows[] = array(
4243
h($key),
43-
h($val)
44+
Debugger::exportVar($val)
4445
);
4546
}
4647
$headers = array('Constant', 'Value');
@@ -58,7 +59,7 @@
5859
foreach ($content['php'] as $key => $val) {
5960
$phpRows[] = array(
6061
h(Inflector::humanize(strtolower($key))),
61-
h($val)
62+
Debugger::exportVar($val)
6263
);
6364
}
6465
echo $this->Toolbar->table($phpRows, $headers, array('title' => 'CakePHP Environment Vars'));

0 commit comments

Comments
 (0)