From 49b83dec0f731d48fc8aed39d4b4f6105758c896 Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 16 Sep 2010 17:19:29 -0300 Subject: Krumo support --- classes/helpers/CinisisDisplayHelper.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'classes/helpers/CinisisDisplayHelper.php') 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(); + } } /** -- cgit v1.2.3