From 2be5225d171d1e6f09f8d2b49b2c528fae721dfe Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 10 Sep 2010 01:00:36 +0000 Subject: [PATCH] Also display shortcode timings when debug=time --- e107_handlers/shortcode_handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index f0c551a63..350a15725 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -563,7 +563,7 @@ class e_parse_shortcode $parm = trim($parm); $parm = str_replace(array('[[', ']]'), array('{', '}'), $parm); - if (E107_DBG_BBSC || E107_DBG_SC) + if (E107_DBG_BBSC || E107_DBG_SC || E107_DBG_TIMEDETAILS) { global $db_debug; $sql->db_Mark_Time("SC $code"); @@ -744,9 +744,9 @@ class e_parse_shortcode } } } - if (E107_DBG_SC) + if (E107_DBG_SC || E107_DBG_TIMEDETAILS) { - $sql->db_Mark_Time("(SC {$code} Done)"); + $sql->db_Mark_Time("(After SC {$code})"); } return isset($ret) ? $ret : ''; }