Commit 5ce5d923 authored by salvis's avatar salvis

#498028: Fix kprint_r() not displaying $name.

parent 979da168
...@@ -1318,7 +1318,7 @@ function dvr($input, $return = FALSE, $name = NULL) { ...@@ -1318,7 +1318,7 @@ function dvr($input, $return = FALSE, $name = NULL) {
function kprint_r($input, $return = FALSE, $name = NULL, $function = 'print_r') { function kprint_r($input, $return = FALSE, $name = NULL, $function = 'print_r') {
if (has_krumo()) { if (has_krumo()) {
if (user_access('access devel information')) { if (user_access('access devel information')) {
return $return ? krumo_ob($input) : krumo($input); return $return ? (isset($name) ? $name .' => ' : '') . krumo_ob($input) : krumo($input);
} }
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment