From dda2fcafbddaf545aae23da13330c3b15df73d76 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 18 Mar 2005 06:51:21 +0000 Subject: [PATCH] Added debugging information. --- template.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/template.php b/template.php index 17bde98..8328331 100644 --- a/template.php +++ b/template.php @@ -390,6 +390,7 @@ class DB_Template */ function _parse_conditionals($template) { + global $_isso; // Tag locations $location_start = -1; $location_end = -1; @@ -421,11 +422,16 @@ class DB_Template // Split the template expression out of the template data $expression = substr($template, $location_start, ($location_end + strlen($tag_end)) - $location_start); + echo("\n\n\n\nexpression: " . $expression); + + echo " ||||| >>>>>> ||||| >>>>> " . substr_count($expression, $tag_end); + // If we have a nested expression, work it out by setting // the search counters to be one and two after the current // start point if (substr_count($expression, $tag_end) > 1) { + $_isso->debug("resetting search counters: $location_start | $location_end"); $location_start = $location_start + 1; $location_end = $location_start + 2; } -- 2.43.5