From c7e54656feccfe2be6456d58775d46ec2d722ea4 Mon Sep 17 00:00:00 2001 From: patdenice Date: Tue, 9 Dec 2008 16:08:48 +0000 Subject: Update Smarty to 2.6.21 git-svn-id: http://piwigo.org/svn/trunk@2961 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/smarty/libs/Smarty.class.php | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'include/smarty/libs/Smarty.class.php') diff --git a/include/smarty/libs/Smarty.class.php b/include/smarty/libs/Smarty.class.php index 6ac6a04b2..7cdc0c835 100644 --- a/include/smarty/libs/Smarty.class.php +++ b/include/smarty/libs/Smarty.class.php @@ -20,17 +20,17 @@ * * For questions, help, comments, discussion, etc., please join the * Smarty mailing list. Send a blank e-mail to - * smarty-general-subscribe@lists.php.net + * smarty-discussion-subscribe@googlegroups.com * - * @link http://smarty.php.net/ + * @link http://www.smarty.net/ * @copyright 2001-2005 New Digital Group, Inc. * @author Monte Ohrt * @author Andrei Zmievski * @package Smarty - * @version 2.6.20 + * @version 2.6.21 */ -/* $Id: Smarty.class.php 2722 2007-06-18 14:29:00Z danilo $ */ +/* $Id: Smarty.class.php 2785 2008-09-18 21:04:12Z Uwe.Tews $ */ /** * DIR_SEP isn't used anymore, but third party apps might @@ -464,7 +464,7 @@ class Smarty * * @var string */ - var $_version = '2.6.20'; + var $_version = '2.6.21'; /** * current template inclusion depth @@ -1292,19 +1292,11 @@ class Smarty if ($display) { if (isset($_smarty_results)) { echo $_smarty_results; } - } - - if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); - } - - if ($display) { if ($this->debugging) { // capture time for debugging info $_params = array(); + require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); + $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); echo smarty_core_display_debug_console($_params, $this); } -- cgit v1.2.3