From efe7ec807d95c4e608b71c0696086ea93e8407b9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 19 Mar 2005 05:16:56 +0000 Subject: [PATCH] NOW it works completely. --- template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.php b/template.php index 0cb00e6..9ca8dbf 100644 --- a/template.php +++ b/template.php @@ -463,7 +463,7 @@ class DB_Template // save all the data for later so we can do a quick replacement $parsed["$depth"]["$last"] = array( 'raw' => $fullspread, - 'parsed' => '" . ((' . stripslashes($expression) . ') ? ("' . $conditional . '")) . "', + 'parsed' => '" . iff(' . stripslashes($expression) . ',"' . $conditional . '") . "', /*'start' => $last, 'end' => $end, 'length' => array( @@ -506,7 +506,7 @@ class DB_Template //$template = str_replace($conditional['unique'], $conditional['parsed'], $template); } } - $template = str_replace('', ') : ("', $template); + $template = str_replace('', '","', $template); return $template; -- 2.43.5