cvs: smarty / NEWS Smarty.class.php

From: Date: Tue, 09 Jul 2002 13:34:19 +0000
Subject: cvs: smarty / NEWS Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-182@lists.php.net to get a copy of this message
mohrt Tue Jul 9 09:34:19 2002 EDT Modified files: /smarty NEWS Smarty.class.php Log: make debug.tpl work with any delimiter Index: smarty/NEWS diff -u smarty/NEWS:1.214 smarty/NEWS:1.215 --- smarty/NEWS:1.214 Mon Jul 8 21:18:00 2002 +++ smarty/NEWS Tue Jul 9 09:34:19 2002 @@ -1,3 +1,4 @@ + - make debug.tpl work with any delimiter (Monte) - change logic in assign() and append() to test var names against != '' instead of empty() (Monte) - fix PHP notice in append() function (Monte) Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.299 smarty/Smarty.class.php:1.300 --- smarty/Smarty.class.php:1.299 Mon Jul 8 21:18:00 2002 +++ smarty/Smarty.class.php Tue Jul 9 09:34:19 2002 @@ -721,6 +721,12 @@ function _generate_debug_output() { // we must force compile the debug template in case the environment // changed between separate applications. + $_orig_ldelim = $this->left_delimiter; + $_orig_rdelim = $this->right_delimiter; + + $this->left_delimiter = '{'; + $this->right_delimiter = '}'; + ob_start(); $force_compile_orig = $this->force_compile; $this->force_compile = true; @@ -732,6 +738,10 @@ $results = ob_get_contents(); $this->force_compile = $force_compile_orig; ob_end_clean(); + + $this->left_delimiter = $_orig_ldelim; + $this->right_delimiter = $_orig_rdelim; + return $results; }

« previous php.smarty.cvs (#182) next »