diff options
author | Silvio <silvio@devlet.com.br> | 2010-09-16 17:19:29 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-09-16 17:19:29 -0300 |
commit | 49b83dec0f731d48fc8aed39d4b4f6105758c896 (patch) | |
tree | 1aadba8a3d5c53a36f69e6ae8740c40f0f0efdd3 /classes/helpers/CinisisDisplayHelper.php | |
parent | 6857a6f1a08242ac3531f5e77c192b3c5a599ff3 (diff) | |
download | cinisis-49b83dec0f731d48fc8aed39d4b4f6105758c896.tar.gz cinisis-49b83dec0f731d48fc8aed39d4b4f6105758c896.tar.bz2 |
Krumo support
Diffstat (limited to 'classes/helpers/CinisisDisplayHelper.php')
-rw-r--r-- | classes/helpers/CinisisDisplayHelper.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php index b102626..5ee48f2 100644 --- a/classes/helpers/CinisisDisplayHelper.php +++ b/classes/helpers/CinisisDisplayHelper.php @@ -369,9 +369,16 @@ class CinisisDisplayHelper { * Variable to dump. */ protected static function webDump($var) { - self::preOpen(); - print_r($var); - self::preClose(); + if (file_exists('../contrib/krumo/class.krumo.php')) { + // Use Krumo. + include_once '../contrib/krumo/class.krumo.php'; + krumo($var); + } + else { + self::preOpen(); + print_r($var); + self::preClose(); + } } /** |