aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php13
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();
+ }
}
/**