Skip to content

Commit

Permalink
Differentiate truncating strings and arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Feb 10, 2021
1 parent f941bd6 commit 916b858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class.krumo.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ private static function _vars(&$data)
// keys
$keys = array_keys($data);

$limit = (int) static::_config('display', 'truncate_count', 0);
$limit = (int) static::_config('display', 'truncate_array_length', 0);
$truncated = 0;

// iterate
Expand Down Expand Up @@ -1454,8 +1454,8 @@ private static function _string($data, $name)
$_ = $data;

// Get the truncate length from the config, or default to 100
$truncate_length = static::_config('display', 'truncate_length', 100);
$display_cr = static::_config('display', 'carriage_returns', true);
$truncate_length = static::_config('display', 'truncate_string_length', 100);
$display_cr = static::_config('display', 'show_carriage_returns', true);

$strlen = strlen($data);
if (function_exists('mb_strlen')) {
Expand Down

0 comments on commit 916b858

Please sign in to comment.